Sha256: 1eea4375322e6ab1b81e5ccefb2b9c5848e25c8c72854b4f9c8bc5d310a67bda
Contents?: true
Size: 470 Bytes
Versions: 10
Compression:
Stored size: 470 Bytes
Contents
#!/usr/bin/env ruby require "stackprof" mode = (ENV["STEEP_STACKPROF_MODE"] || :cpu).to_sym out = ENV["STEEP_STACKPROF_OUT"] || "tmp/stackprof-#{mode}-test.dump" interval = ENV["STEEP_STACKPROF_INTERVAL"]&.to_i || 1000 STDERR.puts "Running profiler: mode => #{mode}, out => #{out}" StackProf.run(mode: mode, out: out, raw: true, interval: interval) do # 10.times do # 1_000.times do # Array.new(1_000_000) # end # sleep 0.1 # end sleep 5 end
Version data entries
10 entries across 10 versions & 1 rubygems