Sha256: 1eea4375322e6ab1b81e5ccefb2b9c5848e25c8c72854b4f9c8bc5d310a67bda

Contents?: true

Size: 470 Bytes

Versions: 23

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

23 entries across 23 versions & 3 rubygems

Version Path
steep-1.10.0 bin/stackprof_test.rb
steep-1.10.0.pre.3 bin/stackprof_test.rb
steep-1.10.0.pre.2 bin/stackprof_test.rb
steep-1.10.0.pre.1 bin/stackprof_test.rb
steep-1.10.0.dev.1 bin/stackprof_test.rb
steep-relaxed-1.9.4.3 bin/stackprof_test.rb
steep-relaxed-1.9.3.3 bin/stackprof_test.rb
steep-activesupport-4-1.9.4 bin/stackprof_test.rb
steep-activesupport-4-1.9.3.1 bin/stackprof_test.rb
steep-1.9.4 bin/stackprof_test.rb
steep-activesupport-4-1.9.3 bin/stackprof_test.rb
steep-1.9.3 bin/stackprof_test.rb
steep-1.9.2 bin/stackprof_test.rb
steep-1.9.1 bin/stackprof_test.rb
steep-1.9.0 bin/stackprof_test.rb
steep-1.9.0.dev.2 bin/stackprof_test.rb
steep-1.9.0.dev.1 bin/stackprof_test.rb
steep-1.8.3 bin/stackprof_test.rb
steep-1.8.2 bin/stackprof_test.rb
steep-1.8.1 bin/stackprof_test.rb