Sha256: a0110abd46156fcc441d7278893acfb9085ed5a99ba31038cd2b31a171d06661

Contents?: true

Size: 252 Bytes

Versions: 3

Compression:

Stored size: 252 Bytes

Contents

module Barnes
  module Instruments
    class ObjectSpaceCounter
      def instrument!(state, counters, gauges)
        ObjectSpace.count_objects.each do |type, count|
          gauges[:"Objects.#{type}"] = count
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
barnes-0.0.3 lib/barnes/instruments/object_space_counter.rb
barnes-0.0.2 /Users/schneems/Documents/projects/barnes/lib/barnes/instruments/object_space_counter.rb
barnes-0.0.1 /Users/schneems/Documents/projects/barnes/lib/barnes/instruments/object_space_counter.rb