Module: Profiler__
- Defined in:
- lib/rubysl/profiler/profiler.rb
Class Method Summary collapse
Class Method Details
.options(opts) ⇒ Object
13 14 15 |
# File 'lib/rubysl/profiler/profiler.rb', line 13 def (opts) @p. opts end |
.print_profile(f) ⇒ Object
17 18 19 20 |
# File 'lib/rubysl/profiler/profiler.rb', line 17 def print_profile(f) stop_profile @p.show(f) end |
.start_profile ⇒ Object
4 5 6 7 |
# File 'lib/rubysl/profiler/profiler.rb', line 4 def start_profile @p = Rubinius::Profiler::Instrumenter.new @p.start end |
.stop_profile ⇒ Object
9 10 11 |
# File 'lib/rubysl/profiler/profiler.rb', line 9 def stop_profile @p.stop end |