Added convenience task rake profile:grind to load up KCacheGind

This commit is contained in:
Tobias Lütke
2009-06-15 10:35:49 -04:00
parent 44f35c0990
commit 7ff4352de2

View File

@@ -23,9 +23,23 @@ Hoe.new(PKG_NAME, PKG_VERSION) do |p|
p.url = "http://www.liquidmarkup.org"
end
desc "Run the liquid profile/perforamce coverage"
task :profile do
namespace :profile do
ruby "performance/shopify.rb"
task :default => [:run]
end
desc "Run the liquid profile/perforamce coverage"
task :run do
ruby "performance/shopify.rb"
end
desc "Run KCacheGrind"
task :grind => :run do
system "kcachegrind /tmp/liquid.rubyprof_calltreeprinter.txt"
end
end