mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Added convenience task rake profile:grind to load up KCacheGind
This commit is contained in:
@@ -23,9 +23,23 @@ Hoe.new(PKG_NAME, PKG_VERSION) do |p|
|
|||||||
p.url = "http://www.liquidmarkup.org"
|
p.url = "http://www.liquidmarkup.org"
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Run the liquid profile/perforamce coverage"
|
|
||||||
task :profile do
|
|
||||||
|
|
||||||
ruby "performance/shopify.rb"
|
namespace :profile do
|
||||||
|
|
||||||
|
|
||||||
|
task :default => [:run]
|
||||||
|
|
||||||
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user