class Mmtrix::Agent::StatsEngine::GCProfiler::RailsBenchProfiler
Public Class Methods
enabled?()
click to toggle source
# File lib/mmtrix/agent/stats_engine/gc_profiler.rb, line 69 def self.enabled? ::GC.respond_to?(:time) && ::GC.respond_to?(:collections) end
Public Instance Methods
call_count()
click to toggle source
# File lib/mmtrix/agent/stats_engine/gc_profiler.rb, line 77 def call_count ::GC.collections end
call_time_s()
click to toggle source
# File lib/mmtrix/agent/stats_engine/gc_profiler.rb, line 73 def call_time_s ::GC.time.to_f / 1_000_000 # this value is reported in us, so convert to s end
reset()
click to toggle source
# File lib/mmtrix/agent/stats_engine/gc_profiler.rb, line 81 def reset ::GC.clear_stats end