Method: EmergeCLI::Profiler#initialize
- Defined in:
- lib/utils/profiler.rb
#initialize(enabled: false) ⇒ Profiler
Returns a new instance of Profiler.
4 5 6 7 8 |
# File 'lib/utils/profiler.rb', line 4 def initialize(enabled: false) @enabled = enabled @measurements = {} @start_times = {} end |