Module: NewRelic::Agent::VM

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

Defined Under Namespace

Classes: JRubyVM, MonotonicGCProfiler, MriVM, 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
    MriVM.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