Skip to content

Commit

Permalink
Merge pull request #2327 from haiderashfaq/rename_mri_vm_to_c_ruby_vm
Browse files Browse the repository at this point in the history
  • Loading branch information
fallwith authored Nov 18, 2023
2 parents 46a8ca9 + c4e6268 commit 3a6b10e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/new_relic/agent/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# frozen_string_literal: true

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

module NewRelic
Expand All @@ -21,7 +21,7 @@ def self.create_vm
if NewRelic::LanguageSupport.jruby?
JRubyVM.new
else
MriVM.new
CRubyVM.new
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
module NewRelic
module Agent
module VM
class MriVM
class CRubyVM
def snapshot
snap = Snapshot.new
gather_stats(snap)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# frozen_string_literal: true

require_relative '../../../test_helper'
require 'new_relic/agent/vm/mri_vm'
require 'new_relic/agent/vm/c_ruby_vm'

unless NewRelic::LanguageSupport.jruby?
module NewRelic
module Agent
module VM
class MriVMTest < Minitest::Test
class CRubyVMTest < Minitest::Test
def setup
@snap = Snapshot.new
@vm = MriVM.new
@vm = CRubyVM.new
end

def test_gather_gc_time_sets_gc_total_time_if_gc_profiler_is_enabled
Expand Down

0 comments on commit 3a6b10e

Please sign in to comment.