module MemoryProfiler
Constants
- VERSION
Public Class Methods
report(opts = {}, &block)
click to toggle source
# File lib/memory_profiler.rb, line 15 def self.report(opts = {}, &block) Reporter.report(opts, &block) end
start(opts = {})
click to toggle source
# File lib/memory_profiler.rb, line 19 def self.start(opts = {}) unless Reporter.current_reporter Reporter.current_reporter = Reporter.new(opts) Reporter.current_reporter.start end end
stop()
click to toggle source
# File lib/memory_profiler.rb, line 26 def self.stop Reporter.current_reporter.stop if Reporter.current_reporter ensure Reporter.current_reporter = nil end