Sha256: cfb44f63809c0d2fafb3b193dffd789459580702f89635d8cf9cebbad64c1354

Contents?: true

Size: 616 Bytes

Versions: 19

Compression:

Stored size: 616 Bytes

Contents

# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

require 'new_relic/language_support'
require 'new_relic/agent/vm/mri_vm'
require 'new_relic/agent/vm/jruby_vm'

module NewRelic
  module Agent
    module VM
      def self.snapshot
        vm.snapshot
      end

      def self.vm
        @vm ||= create_vm
      end

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
newrelic_rpm-9.6.0 lib/new_relic/agent/vm.rb
newrelic_rpm-9.5.0 lib/new_relic/agent/vm.rb
newrelic_rpm-9.4.2 lib/new_relic/agent/vm.rb
newrelic_rpm-9.4.1 lib/new_relic/agent/vm.rb
newrelic_rpm-9.4.0 lib/new_relic/agent/vm.rb
newrelic_rpm-9.3.1 lib/new_relic/agent/vm.rb
newrelic_rpm-9.3.0 lib/new_relic/agent/vm.rb
newrelic_rpm-9.2.2 lib/new_relic/agent/vm.rb
newrelic_rpm-9.2.1 lib/new_relic/agent/vm.rb
newrelic_rpm-9.2.0 lib/new_relic/agent/vm.rb
newrelic_rpm-9.1.0 lib/new_relic/agent/vm.rb
newrelic_rpm-9.0.0 lib/new_relic/agent/vm.rb
newrelic_rpm-8.16.0 lib/new_relic/agent/vm.rb
newrelic_rpm-8.15.0 lib/new_relic/agent/vm.rb
newrelic_rpm-8.14.0 lib/new_relic/agent/vm.rb
newrelic_rpm-8.13.1 lib/new_relic/agent/vm.rb
newrelic_rpm-8.13.0 lib/new_relic/agent/vm.rb
newrelic_rpm-8.12.0 lib/new_relic/agent/vm.rb
newrelic_rpm-8.11.0 lib/new_relic/agent/vm.rb