Class: NewRelic::Agent::StatsEngine::GCProfiler::RailsBench
- Defined in:
- lib/new_relic/agent/stats_engine/gc_profiler.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call_count ⇒ Object
-
#call_time ⇒ Object
microseconds spent in GC.
Methods inherited from Profiler
Constructor Details
This class inherits a constructor from NewRelic::Agent::StatsEngine::GCProfiler::Profiler
Class Method Details
.enabled? ⇒ Boolean
63 64 65 |
# File 'lib/new_relic/agent/stats_engine/gc_profiler.rb', line 63 def self.enabled? ::GC.respond_to?(:time) && ::GC.respond_to?(:collections) end |
Instance Method Details
#call_count ⇒ Object
72 73 74 |
# File 'lib/new_relic/agent/stats_engine/gc_profiler.rb', line 72 def call_count ::GC.collections end |
#call_time ⇒ Object
microseconds spent in GC
68 69 70 |
# File 'lib/new_relic/agent/stats_engine/gc_profiler.rb', line 68 def call_time ::GC.time # this should already be microseconds end |