Module: NewRelic::Agent::StatsEngine::GCProfiler

Defined in:
lib/new_relic/agent/stats_engine/gc_profiler.rb

Defined Under Namespace

Classes: Profiler, RailsBench, Rubinius, Ruby19

Class Method Summary collapse

Class Method Details

.captureObject



12
13
14
# File 'lib/new_relic/agent/stats_engine/gc_profiler.rb', line 12

def self.capture
  @profiler.capture if @profiler
end

.initObject



6
7
8
9
10
# 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?
end