Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes for README

  • Loading branch information...
commit 2bb748a0575d7809d924fd08b19b766e52b2742e 1 parent ef28472
@bhb authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
4 README.md
@@ -7,6 +7,7 @@ Middleware for profiling Rack-compatible apps using [perftools.rb](http://github
Assuming your application is using Rails 3 (and you have installed the requirements in the next section), add the following code:
Gemfile:
+
gem 'rack-perftools_profiler', :require => 'rack/perftools_profiler'
config/environment.rb:
@@ -170,12 +171,15 @@ The mode and frequency settings are enabled by setting environment variables. So
If you need to require 'perftools' before 'rack/perftools_profiler' (or you have other problems changing the mode or frequency), try using these environment variables yourself.
Setting the frequency:
+
CPUPROFILE_FREQUENCY=500 ruby your_app.rb
Setting the mode to 'wall time'
+
CPUPROFILE_REALTIME=1 ruby your_app.rb
Setting the mode to 'object allocation'
+
CPUPROFILE_OBJECTS=1 ruby your_app.rb
## Acknowledgments
Please sign in to comment.
Something went wrong with that request. Please try again.