Stackflame

Stackflame provides a simple API to deal with Flamegraph of stackprof.

Installation

$ gem install stackflame

Usage

require "stackflame"

Stackflame.profile do
  # some code to profile
  100.times { User.create }
end

If you use OSX, flamegraph will be opened with your default browser.

Rack middlware

use Rack::Stackflame, interval: 10

License

MIT License