Class: Trashed::Instruments::ObjectSpaceCounter
- Inherits:
-
Object
- Object
- Trashed::Instruments::ObjectSpaceCounter
- Defined in:
- lib/trashed/instruments/object_space_counter.rb
Instance Method Summary collapse
Instance Method Details
#measure(state, timings, gauges) ⇒ Object
4 5 6 7 8 |
# File 'lib/trashed/instruments/object_space_counter.rb', line 4 def measure(state, timings, gauges) ObjectSpace.count_objects.each do |type, count| gauges << [ :"Objects.#{type}", count ] end end |