Sha256: 54692c3353b5e98208c00c80ee1d4569a44409fd0787cb383d62e7d90a171824

Contents?: true

Size: 441 Bytes

Versions: 5

Compression:

Stored size: 441 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stackprof-webnav-1.0.4 Rakefile
stackprof-webnav-1.0.3 Rakefile
stackprof-webnav-1.0.2 Rakefile
stackprof-webnav-1.0.1 Rakefile
stackprof-webnav-1.0.0 Rakefile