Rackprof
Middleware which displays GC, sampling call-stack on dashboard using GC.stat, stackprof.
Only supports for ruby 2.1+ and thin web server at the moment.
Installation
Add this line to your application's Gemfile:
gem 'rackprof'
Rails
Nothing to do!
Sinatra
require 'rackprof'
class MyApp < Sinatra::Base
use Rackprof::Middleware
end
Rack
In your config.ru
add use RackProf
line:
require 'rackprof'
use Rackprof::Middleware
Usage
Access to dashboard page which is automatically mounted at /rackprof
:
http://localhost:3000/rackprof
Contributing
- Fork it ( https://github.com/[my-github-username]/rackprof/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request