Sha256: 1091dfd09cd8e66a3e39eef3135cb8129fe93bb89e1efce38c0bd51159f8faa1

Contents?: true

Size: 431 Bytes

Versions: 9

Compression:

Stored size: 431 Bytes

Contents

require 'pyroscope'

puts "prestart #{Process.pid}"

Pyroscope.configure do |config|
  config.app_name = "test.app.ruby2.cpu{}"
  config.server_address = "http://localhost:4040/"
end

puts "start"
i=0
st = Time.new
while true
  i+=1
  # puts Time.new - st
  if Time.new - st > 5
    puts "new name " + "test.app.ruby2.cpu{iteration=#{i}}"
    Pyroscope.change_name("test.app.ruby2.cpu{iteration=#{i}}")
    st = Time.new
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pyroscope-0.0.10 test.rb
pyroscope-0.0.9 test.rb
pyroscope-0.0.8 test.rb
pyroscope-0.0.7 test.rb
pyroscope-0.0.6 test.rb
pyroscope-0.0.5 test.rb
pyroscope-0.0.4 test.rb
pyroscope-0.0.3 test.rb
pyroscope-0.0.2 test.rb