Skip to content

Instantly share code, notes, and snippets.

@ruvaleev
Created December 28, 2020 12:59
Show Gist options
  • Save ruvaleev/bbed6926342414aa8c4f3b6ee0497fa2 to your computer and use it in GitHub Desktop.
Save ruvaleev/bbed6926342414aa8c4f3b6ee0497fa2 to your computer and use it in GitHub Desktop.
Как отчет qcachgrind делать
# RubyProf CallGrind report
# ruby 15-ruby-prof-callgrind.rb
# brew install qcachegrind
# qcachegrind ruby_prof_reports/...
require 'ruby-prof'
require_relative '../task-2.rb'
RubyProf.measure_mode = RubyProf::WALL_TIME
result = RubyProf.profile do
work
end
printer4 = RubyProf::CallTreePrinter.new(result)
printer4.print(:path => "profilizers/ruby_prof_reports", :profile => 'callgrind')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment