Module: MemoryProfiler

Defined in:
lib/memory_profiler.rb,
lib/memory_profiler/stat.rb,
lib/memory_profiler/top_n.rb,
lib/memory_profiler/helpers.rb,
lib/memory_profiler/results.rb,
lib/memory_profiler/version.rb,
lib/memory_profiler/reporter.rb,
lib/memory_profiler/stat_hash.rb,
lib/memory_profiler/monochrome.rb,
lib/memory_profiler/polychrome.rb

Defined Under Namespace

Modules: TopN Classes: Helpers, Monochrome, Polychrome, Reporter, Results, Stat, StatHash

Constant Summary collapse

VERSION =
"0.9.6"

Class Method Summary collapse

Class Method Details

.report(opts = {}, &block) ⇒ Object


12
13
14
15
# File 'lib/memory_profiler.rb', line 12

def self.report(opts={},&block)
  opts[:top] ||= 50
  Reporter.report(opts,&block)
end