From 7ff4352de24bfddc7a920e7593e35021420c1992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20L=C3=BCtke?= Date: Mon, 15 Jun 2009 10:35:49 -0400 Subject: [PATCH] Added convenience task rake profile:grind to load up KCacheGind --- Rakefile | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 2ccd529..a051104 100755 --- a/Rakefile +++ b/Rakefile @@ -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 \ No newline at end of file + 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 + + \ No newline at end of file