mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
Introduce support for memory usage profiles
This commit is contained in:
@@ -71,6 +71,20 @@ namespace :profile do
|
||||
|
||||
end
|
||||
|
||||
namespace :memory do
|
||||
|
||||
desc "Run the liquid memory tracer"
|
||||
task :run do
|
||||
ruby "./performance/memory.rb"
|
||||
end
|
||||
|
||||
desc "Run the liquid memory tracer with strict parsing"
|
||||
task :strict do
|
||||
ruby "./performance/memory.rb strict"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
desc "Run example"
|
||||
task :example do
|
||||
ruby "-w -d -Ilib example/server/server.rb"
|
||||
|
||||
Reference in New Issue
Block a user