Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 6a8f5c98930dc28914cd1e54eb296224392d03d4 1 parent 35604c2
@headius headius authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/ruby/1.9/profile.rb
View
10 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)
}
Please sign in to comment.
Something went wrong with that request. Please try again.