Module: NewRelic::Agent::VM

Defined in:
lib/new_relic/agent/vm.rb,
lib/new_relic/agent/vm/jruby_vm.rb,
lib/new_relic/agent/vm/snapshot.rb,
lib/new_relic/agent/vm/c_ruby_vm.rb,
lib/new_relic/agent/vm/monotonic_gc_profiler.rb

Defined Under Namespace

Classes: CRubyVM, JRubyVM, MonotonicGCProfiler, Snapshot

Class Method Summary collapse

Class Method Details

.create_vmObject



20
21
22
23
24
25
26
# File 'lib/new_relic/agent/vm.rb', line 20

def self.create_vm
  if NewRelic::LanguageSupport.jruby?
    JRubyVM.new
  else
    CRubyVM.new
  end
end

.snapshotObject



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

def self.snapshot
  vm.snapshot
end

.vmObject



16
17
18
# File 'lib/new_relic/agent/vm.rb', line 16

def self.vm
  @vm ||= create_vm
end