Rakefile in stackprof-webnav-0.1.0 vs Rakefile in stackprof-webnav-1.0.0

- old
+ new

@@ -1,24 +1,48 @@ require "bundler/gem_tasks" +require "stackprof" +require "rack/test" + +task :make_dump do + class DummyA + def work + sleep 0.01 + end + end + + class DummyB + def work + DummyA.new.work + end + end + + StackProf.run(mode: :cpu, out: 'spec/fixtures/test.dump') do + 1000.times { DummyB.new.work } + end + + StackProf.run(mode: :cpu, raw: true, out: 'spec/fixtures/test-raw.dump') do + 1000.times { DummyB.new.work } + end +end