Add profile:strict rake task.

This commit is contained in:
Dylan Thacker-Smith
2014-03-21 21:54:53 -04:00
parent d8d9984a7b
commit d1bfda15e3
2 changed files with 4 additions and 3 deletions

View File

@@ -64,9 +64,9 @@ namespace :profile do
ruby "./performance/profile.rb"
end
desc "Run KCacheGrind"
task :grind => :run do
system "qcachegrind /tmp/liquid.rubyprof_calltreeprinter.txt"
desc "Run the liquid profile/performance coverage with strict parsing"
task :strict do
ruby "./performance/profile.rb strict"
end
end

View File

@@ -1,6 +1,7 @@
require 'stackprof' rescue fail("install stackprof extension/gem")
require File.dirname(__FILE__) + '/theme_runner'
Liquid::Template.error_mode = ARGV.first.to_sym if ARGV.first
profiler = ThemeRunner.new
profiler.run
results = StackProf.run(mode: :cpu) do