Skip to content

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

License

Notifications You must be signed in to change notification settings

selvakn/rails_instrument

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Installation

Install the latest stable release:

[sudo] gem install rails_instrument

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

gem 'rails_instrument'

TODO

  • 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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages