class Mmtrix::Agent::StatsEngine::GCProfiler::CoreGCProfiler

Public Class Methods

enabled?() click to toggle source
# File lib/mmtrix/agent/stats_engine/gc_profiler.rb, line 87
def self.enabled?
  Mmtrix::LanguageSupport.gc_profiler_enabled?
end

Public Instance Methods

call_count() click to toggle source
# File lib/mmtrix/agent/stats_engine/gc_profiler.rb, line 95
def call_count
  ::GC.count
end
call_time_s() click to toggle source
# File lib/mmtrix/agent/stats_engine/gc_profiler.rb, line 91
def call_time_s
  Mmtrix::Agent.instance.monotonic_gc_profiler.total_time_s
end
reset() click to toggle source

When using GC::Profiler, it’s important to periodically call GC::Profiler.clear in order to avoid unbounded growth in the number of GC recordds that are stored. However, we actually do this internally within MonotonicGCProfiler on calls to total_time_s, so the reset here is a no-op.

# File lib/mmtrix/agent/stats_engine/gc_profiler.rb, line 104
def reset; end