Class: HeapProfiler::Analyzer::FileGroupDimension
- Inherits:
-
GroupedDimension
- Object
- Dimension
- GroupedDimension
- HeapProfiler::Analyzer::FileGroupDimension
- Defined in:
- lib/heap_profiler/analyzer.rb
Instance Attribute Summary
Attributes inherited from Dimension
Instance Method Summary collapse
Methods inherited from GroupedDimension
Methods inherited from Dimension
Constructor Details
This class inherits a constructor from HeapProfiler::Analyzer::GroupedDimension
Instance Method Details
#process(_index, object) ⇒ Object
74 75 76 77 78 79 |
# File 'lib/heap_profiler/analyzer.rb', line 74 def process(_index, object) if (group = object[:file]) @objects[group] += 1 @memory[group] += object[:memsize] end end |