Sha256: e39e97024cbc605a6372a44a198b938094e8c450db5ad464c3e0f7bd6a992964

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

require 'tooling/profiler/profiler'

module Profiler__
  def start_profile
    @p = Rubinius::Profiler::Instrumenter.new
    @p.start
  end

  def stop_profile
    @p.stop
  end

  def options(opts)
    @p.set_options opts
  end

  def print_profile(f)
    stop_profile
    @p.show(f)
  end

  module_function :start_profile, :stop_profile, :print_profile, :options
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysl-profiler-1.0.0 lib/rubysl/profiler/profiler.rb