【文件属性】:
文件名称:flamegraph:对Ruby 2.0的Flamegraph分析支持
文件大小:108KB
文件格式:ZIP
更新时间:2021-05-17 09:11:00
HTML
火焰图
对任意Ruby应用程序的Flamegraph支持。
请注意,flightgraph支持内置在机架迷你轮廓仪中,只需使用此gem,您就可以使用了。 键入?pp = flamegraph为当前页面创建一个。
安装
将此行添加到您的应用程序的Gemfile中:
gem 'flamegraph'
然后执行:
$ bundle
或将其自己安装为:
$ gem install flamegraph
注意:对于ruby 2.1+,您需要安装 gem:
$ gem install stackprof
用法
注意:仅在Ruby 2.0上受支持。 在早期版本的Ruby或JRuby上,收集堆栈跟踪太慢
require 'flamegraph'
html = Flamegraph . generate do
# your work here
end
# or
Flamegraph
【文件预览】:
flamegraph-master
----flamegraph.gemspec(1KB)
----Guardfile(223B)
----Rakefile(116B)
----test()
--------test_helper.rb(48B)
--------test_stackprof_sampler.rb(722B)
--------test_renderer.rb(963B)
--------test_fast_stack_sampler.rb(525B)
--------test_sampler.rb(467B)
----CHANGELOG(619B)
----Gemfile(191B)
----.gitignore(176B)
----lib()
--------flamegraph()
--------flamegraph.rb(2KB)
----demo()
--------demo.rb(332B)
--------rails_startup.rb(187B)
----README.md(1KB)
----LICENSE.txt(1KB)