Permalink
Browse files

Fix for JRUBY-6725. See jruby/ruby repo for description.

  • Loading branch information...
1 parent 35604c2 commit 6a8f5c98930dc28914cd1e54eb296224392d03d4 @headius headius committed Jun 29, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/ruby/1.9/profile.rb
@@ -1,9 +1,11 @@
require 'profiler'
-RubyVM::InstructionSequence.compile_option = {
- :trace_instruction => true,
- :specialized_instruction => false
-}
+# Commented out since JRuby doesn't have RubyVM namespace.
+# JRuby will warn to pass --debug for equivalent functionality.
+#RubyVM::InstructionSequence.compile_option = {
+# :trace_instruction => true,
+# :specialized_instruction => false
+#}
END {
Profiler__::print_profile(STDERR)
}

0 comments on commit 6a8f5c9

Please sign in to comment.