Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails Middleware to show instrumentation details like db, view runtimes, number of sql queries, etc

tree: 70be76cd65

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Rakefile
Octocat-spinner-32 rails_instrument.gemspec

Rails Instrument

This gem is a middleware which add some instrumentation details like db runtime, view runtime, number of sqls fired on each request in the response headers.

Response headers added

  • X-View-Runtime
  • X-DB-Runtime
  • X-DB-Query-Count


Install the latest stable release:

[sudo] gem install rails_instrument

In Rails >= 3, add it to your Gemfile:

gem 'rails_instrument'


  • Create chrome extension to show this information inline in the page. Implemented as html fragment added by the middleware to html response.
  • Add helper methods for tests. Ex: The number of sqls fired can be asserted. - wip
  • Add test coverage.
Something went wrong with that request. Please try again.