Sha256: 0e4aa4b8475fe94822e6d58e96ae718b042b7b404d7ec205b0890d07b1cec986

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 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, Process.pid)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pyroscope-0.0.16 lib/pyroscope.rb
pyroscope-0.0.14 lib/pyroscope.rb
pyroscope-0.0.13 lib/pyroscope.rb
pyroscope-0.0.12 lib/pyroscope.rb