Sha256: 858e196ca91acfc9320483c80308bf092f5b15d80304e4ca1ce48b8c28abcd69

Contents?: true

Size: 436 Bytes

Versions: 6

Compression:

Stored size: 436 Bytes

Contents

require "pyroscope/version"
require_relative "./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

6 entries across 6 versions & 1 rubygems

Version Path
pyroscope-0.0.7 lib/pyroscope.rb
pyroscope-0.0.6 lib/pyroscope.rb
pyroscope-0.0.5 lib/pyroscope.rb
pyroscope-0.0.4 lib/pyroscope.rb
pyroscope-0.0.3 lib/pyroscope.rb
pyroscope-0.0.2 lib/pyroscope.rb