diff --git a/Rakefile b/Rakefile index 219b7cc..cd69268 100755 --- a/Rakefile +++ b/Rakefile @@ -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 diff --git a/performance/profile.rb b/performance/profile.rb index 5ff4201..69144cb 100644 --- a/performance/profile.rb +++ b/performance/profile.rb @@ -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