Class: HeapProfiler::Analyzer::GemGroupDimension
- Inherits:
-
GroupedDimension
- Object
- Dimension
- GroupedDimension
- HeapProfiler::Analyzer::GemGroupDimension
- 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
96 97 98 99 100 101 |
# File 'lib/heap_profiler/analyzer.rb', line 96 def process(index, object) if (group = index.guess_gem(object)) @objects[group] += 1 @memory[group] += object[:memsize] end end |