Module: Myco::DEV
- Defined in:
- lib/myco/dev/counter.rb,
lib/myco/dev/profile.rb,
lib/myco/dev/call_sites.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.profile(show = true, &block) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/myco/dev/profile.rb', line 4 def self.profile(show=true, &block) require 'rubinius/profiler' prof = Rubinius::Profiler::Instrumenter.new prof.profile &block prof.show if show prof end |