aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-22 06:28:17 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-22 06:28:17 +0000
commit4ba69a41d8373bfdc17f54a1d5f16886ad3f6371 (patch)
treeaf1bf37deca5d4764a425a19e0fb990ab8ddec3c /vm_insnhelper.h
parentd5d2440e0fcb7f8f24b24702c75171eb662ca0b2 (diff)
downloadruby-4ba69a41d8373bfdc17f54a1d5f16886ad3f6371.tar.gz
* vm_insnhelper.h: partly revert r37631 (DTrace support).
"vm usage information is always collected, so uncomment the functions." causes performance impact. [Bug #7370] Off course this revert disables related probes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 2748cd57c7..62d9781bc9 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -62,12 +62,14 @@ enum {
extern char ruby_vm_redefined_flag[BOP_LAST_];
extern VALUE ruby_vm_const_missing_count;
+#if VM_COLLECT_USAGE_DETAILS
#define COLLECT_USAGE_INSN(insn) vm_collect_usage_insn(insn)
#define COLLECT_USAGE_OPERAND(insn, n, op) vm_collect_usage_operand((insn), (n), ((VALUE)(op)))
-#if VM_COLLECT_USAGE_DETAILS
#define COLLECT_USAGE_REGISTER(reg, s) vm_collect_usage_register((reg), (s))
#else
+#define COLLECT_USAGE_INSN(insn) /* none */
+#define COLLECT_USAGE_OPERAND(insn, n, op) /* none */
#define COLLECT_USAGE_REGISTER(reg, s) /* none */
#endif