Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (18 sloc) 0.37 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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
Something went wrong with that request. Please try again.