Module: NewRelic::Agent::StatsEngine::GCProfiler
- Defined in:
- lib/new_relic/agent/stats_engine/gc_profiler.rb
Defined Under Namespace
Classes: Profiler, RailsBench, Rubinius, RubiniusAgent, Ruby19
Class Method Summary collapse
Class Method Details
.capture ⇒ Object
13 14 15 |
# File 'lib/new_relic/agent/stats_engine/gc_profiler.rb', line 13 def self.capture @profiler.capture if @profiler end |
.init ⇒ Object
6 7 8 9 10 11 |
# File 'lib/new_relic/agent/stats_engine/gc_profiler.rb', line 6 def self.init @profiler = RailsBench.new if RailsBench.enabled? @profiler = Ruby19.new if Ruby19.enabled? @profiler = Rubinius.new if Rubinius.enabled? @profiler = RubiniusAgent.new if RubiniusAgent.enabled? end |