test/yarv_test.rb in ruby-prof-0.18.0 vs test/yarv_test.rb in ruby-prof-1.0.0
- old
+ new
@@ -27,9 +27,10 @@
assert_equal 2, a.length
assert_equal ["BugsTest#test_array_push_optimized", "BugsTest#array_push_optimized", "Array#push"], result.threads.first.methods.map(&:full_name)
end
private
+
def define_methods
return if respond_to?(:array_push_optimized)
old_compile_option = RubyVM::InstructionSequence.compile_option
RubyVM::InstructionSequence.compile_option = {
:trace_instruction => true,