Sha256: bbfcd273342c9939481f8f5409dde80cb21024bf8429ef2a6dd6b1f2d737233e
Contents?: true
Size: 414 Bytes
Versions: 42
Compression:
Stored size: 414 Bytes
Contents
#!/usr/bin/env ruby require "stackprof" mode = (ENV["STEEP_STACKPROF_MODE"] || :cpu).to_sym out = ENV["STEEP_STACKPROF_OUT"] || "tmp/stackprof-#{mode}-steep.dump" interval = ENV["STEEP_STACKPROF_INTERVAL"]&.to_i || 1000 def exit(*) end STDERR.puts "Running profiler: mode=#{mode}, out=#{out}" StackProf.run(mode: mode, out: out, raw: true, interval: interval) do load File.join(__dir__, "../exe/steep") end
Version data entries
42 entries across 42 versions & 1 rubygems