Class: DevSuite::Performance::ProfilerManager

Inherits:
Object
  • Object
show all
Defined in:
lib/dev_suite/performance/profiler_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProfilerManager

TODO: building as function in Construct::Component



9
10
11
# File 'lib/dev_suite/performance/profiler_manager.rb', line 9

def initialize
  @results = {}
end

Instance Attribute Details

#resultsObject (readonly)

Returns the value of attribute results.



6
7
8
# File 'lib/dev_suite/performance/profiler_manager.rb', line 6

def results
  @results
end

Instance Method Details

#run(&block) ⇒ Object

Runs the configured profilers and returns the final result



14
15
16
17
# File 'lib/dev_suite/performance/profiler_manager.rb', line 14

def run(&block)
  outcome = block.call
  run_profilers(outcome)
end