diff --git a/README.rdoc b/README.rdoc index 3aeeef19..a89cdbba 100644 --- a/README.rdoc +++ b/README.rdoc @@ -186,29 +186,29 @@ profile.rb. So to profile Rails: 1. Create a new profile.rb environment. Make sure to turn on cache_classes -and cache_template_loading. Otherwise your profiling results will be -overwhelemed by the time Rails spends loading required files. You should -likely turn off caching. + and cache_template_loading. Otherwise your profiling results will be + overwhelemed by the time Rails spends loading required files. You should + likely turn off caching. 2. Add the ruby-prof to your gemfile: - group :profile do - gem 'ruby-prof' - end + group :profile do + gem 'ruby-prof' + end 3. Add the ruby prof rack adapter to your middleware stack. One way to -do this is by adding the following code to config.ru: + do this is by adding the following code to config.ru: - if Rails.env.profile? - use Rack::RubyProf, :path => '/temp/profile' - end + if Rails.env.profile? + use Rack::RubyProf, :path => '/temp/profile' + end -The path is where you want profiling results to be stored. By default the -rack adapter will generate a html call graph report and flat text report. + The path is where you want profiling results to be stored. By default the + rack adapter will generate a html call graph report and flat text report. 4. Now make a request to your running server. New profiling information will -be generated for each request. Note that each request will overwrite -the profiling reports created by the previous request! + be generated for each request. Note that each request will overwrite + the profiling reports created by the previous request! == Reports diff --git a/bin/ruby-prof b/bin/ruby-prof old mode 100755 new mode 100644 diff --git a/test/dynamic_method_test.rb b/test/dynamic_method_test.rb index 2573e1a4..fd854526 100644 --- a/test/dynamic_method_test.rb +++ b/test/dynamic_method_test.rb @@ -54,8 +54,8 @@ def test_dynamic_method assert_in_delta(0.0, methods[5].self_time, 0.01) assert_equal("#{RubyProf::PARENT}#initialize", methods[6].full_name) - assert_in_delta(0.0, methods[5].total_time, 0.01) - assert_in_delta(0.0, methods[5].wait_time, 0.01) - assert_in_delta(0.0, methods[5].self_time, 0.01) + assert_in_delta(0.0, methods[6].total_time, 0.01) + assert_in_delta(0.0, methods[6].wait_time, 0.01) + assert_in_delta(0.0, methods[6].self_time, 0.01) end end diff --git a/test/test_suite.rb b/test/test_suite.rb index c5a631eb..0ecefec1 100644 --- a/test/test_suite.rb +++ b/test/test_suite.rb @@ -24,7 +24,6 @@ module_test multi_printer_test no_method_class_test - pause_resume_test prime_test printers_test recursive_test