Sha256: 96411bd7db90fc265604f1009549447a743f90de42a7ada1d752b7e12376a19d

Contents?: true

Size: 595 Bytes

Versions: 42

Compression:

Stored size: 595 Bytes

Contents

# encoding: utf-8

require 'one_apm/support/language_support'
require 'one_apm/support/vm/mri_vm'
require 'one_apm/support/vm/jruby_vm'
require 'one_apm/support/vm/rubinius_vm'

module OneApm
  module Support
    module VM
      def self.snapshot
        vm.snapshot
      end

      def self.vm
        @vm ||= create_vm
      end

      def self.create_vm
        if OneApm::LanguageSupport.using_engine?('jruby')
          JRubyVM.new
        elsif OneApm::LanguageSupport.using_engine?('rbx')
          RubiniusVM.new
        else
          MriVM.new
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
oneapm_rpm-1.4.2 lib/one_apm/support/vm.rb
oneapm_rpm-1.4.1 lib/one_apm/support/vm.rb
oneapm_rpm-1.4.0 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.7 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.6 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.5 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.4 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.3 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.2 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.1 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.0 lib/one_apm/support/vm.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/support/vm.rb
oneapm_rpm-1.2.9 lib/one_apm/support/vm.rb