Class: DevSuite::Performance::ProfilerManager
- Inherits:
-
Object
- Object
- DevSuite::Performance::ProfilerManager
- Defined in:
- lib/dev_suite/performance/profiler_manager.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize ⇒ ProfilerManager
constructor
TODO: building as function in Construct::Component.
-
#run(&block) ⇒ Object
Runs the configured profilers and returns the final result.
Constructor Details
#initialize ⇒ ProfilerManager
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
#results ⇒ Object (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 |