Sha256: 496f0e4fae4d11a9f17fb47f1c9d9cdcdedb00c816886ef55b377299025a4038

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

require "pyroscope/version"
require "pyroscope_c"

module Pyroscope
  Config = Struct.new(:app_name, :server_address)

  def self.configure
    @configuration = Config.new
    yield @configuration
    _start(
      @configuration.app_name,
      Process.pid,
      @configuration.server_address,
    )
  end

  def self.stop
    _stop(Process.pid)
  end

  def self.change_name(new_name)
    _change_name(new_name)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pyroscope-0.0.10 lib/pyroscope.rb
pyroscope-0.0.9 lib/pyroscope.rb
pyroscope-0.0.8 lib/pyroscope.rb