Project

stackflame

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Stackflame provides a simple API to deal with Flamegraph of stackprof.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.7
>= 0
~> 10.0

Runtime

~> 0.2.7
 Project Readme

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