Class: Flows::Plugin::Profiler::Report::Flat
- Inherits:
-
Tree
- Object
- Flows::Plugin::Profiler::Report
- Tree
- Flows::Plugin::Profiler::Report::Flat
- Defined in:
- lib/flows/plugin/profiler/report/flat.rb,
lib/flows/plugin/profiler/report/flat/method_report.rb
Overview
Flat report. Merges similar calls, hides execution structure.
It's a variation of a Rport::Tree where all calls of the same method are combined into a one first-level entry.
Defined Under Namespace
Classes: MethodReport
Instance Attribute Summary
Attributes inherited from Flows::Plugin::Profiler::Report
Instance Method Summary collapse
Methods inherited from Tree
Methods inherited from Flows::Plugin::Profiler::Report
Constructor Details
This class inherits a constructor from Flows::Plugin::Profiler::Report
Instance Method Details
#to_a ⇒ Object
19 20 21 |
# File 'lib/flows/plugin/profiler/report/flat.rb', line 19 def to_a method_reports.map(&:to_h) end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/flows/plugin/profiler/report/flat.rb', line 23 def to_s method_reports.map(&:to_s).join("\n") end |