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']
require 'ruby-prof'
reporter = case (profile_extname = File.extname(profile_filename))
when '.txt'
RubyProf::GraphPrinter
RubyProf::FlatPrinterWithLineNumbers
when '.html'
RubyProf::GraphHtmlPrinter
when '.callgrind'
RubyProf::CallTreePrinter
else
raise "Unknown profiler format indicated by extension: #{profile_extname}"
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