Created
December 28, 2020 12:59
-
-
Save ruvaleev/bbed6926342414aa8c4f3b6ee0497fa2 to your computer and use it in GitHub Desktop.
Как отчет qcachgrind делать
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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