Class: OneApm::Collector::StatsEngine::GCProfiler::CoreGCProfiler
- Inherits:
-
Object
- Object
- OneApm::Collector::StatsEngine::GCProfiler::CoreGCProfiler
- Defined in:
- lib/one_apm/collector/stats_engine/gc_profiler.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call_count ⇒ Object
- #call_time_s ⇒ Object
-
#reset ⇒ Object
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.
Class Method Details
.enabled? ⇒ Boolean
84 85 86 |
# File 'lib/one_apm/collector/stats_engine/gc_profiler.rb', line 84 def self.enabled? OneApm::LanguageSupport.gc_profiler_enabled? end |
Instance Method Details
#call_count ⇒ Object
92 93 94 |
# File 'lib/one_apm/collector/stats_engine/gc_profiler.rb', line 92 def call_count ::GC.count end |
#call_time_s ⇒ Object
88 89 90 |
# File 'lib/one_apm/collector/stats_engine/gc_profiler.rb', line 88 def call_time_s OneApm::Manager.agent.monotonic_gc_profiler.total_time_s end |
#reset ⇒ Object
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.
101 |
# File 'lib/one_apm/collector/stats_engine/gc_profiler.rb', line 101 def reset; end |