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



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

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

.initObject



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
end