Sha256: dbf51f1ff4bc58bdb41175f192c4123b05a9d607046b08088bc14fb605a03892
Contents?: true
Size: 512 Bytes
Versions: 24
Compression:
Stored size: 512 Bytes
Contents
module NewRelic module Agent module Samplers class ObjectSampler < NewRelic::Agent::Sampler def initialize super :objects end def stats stats_engine.get_stats_no_scope("GC/objects") end def self.supported_on_this_platform? defined?(ObjectSpace) && ObjectSpace.respond_to?(:live_objects) end def poll stats.record_data_point(ObjectSpace.live_objects) end end end end end
Version data entries
24 entries across 24 versions & 3 rubygems