kernel/delta/profiler.rb
# Convenience method to profile snippets of code in a larger script or
# program. Enables the profiler and yields to the given block.
#
#   pr = Rubinius::Profiler::Instrumenter.new
#   pr.profile { # do some work here }
Convenience method to profile snippets of code in a larger script or
program. Enables the profiler and yields to the given block.

pr = Rubinius::Profiler::Instrumenter.new
pr.profile { # do some work here }
Convenience method to profile snippets of code in a larger script or program . Enables the profiler and yields to the given block . pr = Rubinius :: Profiler :: Instrumenter . new pr . profile { # do some work here }
def profile(display = true)
      start
      yield if block_given?
      stop
      show if display
      @profile
    end
def profile ( display = true ) start yield if block_given? stop show if display @profile end
Convenience method to profile snippets of code in a larger script or
program.
Convenience method to profile snippets of code in a larger script or program .
display
<not_specific>