Stackflame
Stackflame provides a simple API to deal with Flamegraph of stackprof.
Installation
$ gem install stackflameUsage
require "stackflame"
Stackflame.profile do
# some code to profile
100.times { User.create }
endIf you use OSX, flamegraph will be opened with your default browser.
Rack middlware
use Rack::Stackflame, interval: 10License
MIT License