class Carver::Profiler
Public Class Methods
profile_memory(path, action, parent) { || ... }
click to toggle source
# File lib/carver/profiler.rb, line 4 def self.profile_memory(path, action, parent) report = MemoryProfiler.report do yield end if Carver.configuration.enabled presenter = Presenter.new(report, path, action, parent) presenter.log if Carver.configuration.log_results presenter.add_to_results end end