Commit fba0e35c authored by Eloy Durán's avatar Eloy Durán

[profile] Add KCacheGrind profile printer with `.callgrind` extname.

parent cd4da99f
...@@ -35,9 +35,11 @@ if profile_filename = ENV['PROFILE'] ...@@ -35,9 +35,11 @@ if profile_filename = ENV['PROFILE']
require 'ruby-prof' require 'ruby-prof'
reporter = case (profile_extname = File.extname(profile_filename)) reporter = case (profile_extname = File.extname(profile_filename))
when '.txt' when '.txt'
RubyProf::GraphPrinter RubyProf::FlatPrinterWithLineNumbers
when '.html' when '.html'
RubyProf::GraphHtmlPrinter RubyProf::GraphHtmlPrinter
when '.callgrind'
RubyProf::CallTreePrinter
else else
raise "Unknown profiler format indicated by extension: #{profile_extname}" raise "Unknown profiler format indicated by extension: #{profile_extname}"
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment