bin/ruby-prof in ruby-prof-0.13.1 vs bin/ruby-prof in ruby-prof-0.14.0
- old
+ new
@@ -147,11 +147,11 @@
opts.on("--replace-progname", "Replace $0 when loading the .rb files.") do
options.replace_prog_name = true
end
- if defined?(VM)
+ if defined?(RubyVM)
opts.on("--specialized-instruction", "Turn on specified instruction.") do
options.specialized_instruction = true
end
end
@@ -271,12 +271,12 @@
if options.replace_prog_name
$0 = File.expand_path(script)
end
# Set VM compile option
- if defined?(VM)
- VM::InstructionSequence.compile_option = {
+ if defined?(RubyVM)
+ RubyVM::InstructionSequence.compile_option = {
:trace_instruction => true,
:specialized_instruction => options.specialized_instruction
}
end
@@ -324,6 +324,6 @@
printer.print(STDOUT, printer_options)
end
}
# Now profile some code
-cmd.run
\ No newline at end of file
+cmd.run