Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a quick start section to README

  • Loading branch information...
commit ef28472d51fc8ec7576954e2a6a7c9ff3b979ba0 1 parent 31bc3a0
@bhb authored
Showing with 15 additions and 0 deletions.
  1. +15 −0
@@ -2,6 +2,21 @@
Middleware for profiling Rack-compatible apps using [perftools.rb](
+## Quick start
+Assuming your application is using Rails 3 (and you have installed the requirements in the next section), add the following code:
+ gem 'rack-perftools_profiler', :require => 'rack/perftools_profiler'
+ config.middleware.use ::Rack::PerftoolsProfiler, :default_printer => 'gif', :bundler => true
+The visit the page you want to profile:
+ http://localhost:3000/some_action?profile=true
## Requirements
You'll need graphviz to generate call graphs using dot (for the GIF printer):
Please sign in to comment.
Something went wrong with that request. Please try again.