Skip to content

Commit

Permalink
Fix for JRUBY-6725. See jruby/ruby repo for description.
Browse files Browse the repository at this point in the history
  • Loading branch information
headius authored and dekellum committed Aug 3, 2012
1 parent 44b8f31 commit f9b745f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions 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)
}
Expand Down

0 comments on commit f9b745f

Please sign in to comment.