summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-16 07:29:44 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-16 07:29:44 +0000
commit731aa0d0a886bef3fc6a8591e706d7284a4f8cb8 (patch)
tree3a0ac0df4ee028ca80e7c632a66900f7bfa89ee1 /lib
parentfd0ab684150cde7672d5e3d524c9c1813b05e76f (diff)
* include/ruby/ruby.h: added some declarations for event hooks.
* lib/profile.rb: set VM::InstructionSequence.compile_option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/profile.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/profile.rb b/lib/profile.rb
index 104cb205b9..19275a3fd2 100644
--- a/lib/profile.rb
+++ b/lib/profile.rb
@@ -1,5 +1,9 @@
require 'profiler'
+VM::InstructionSequence.compile_option = {
+ :trace_instruction => true,
+ :specialized_instruction => false
+}
END {
Profiler__::print_profile(STDERR)
}