From 5ce28c0642591a950e5757150137253cb8d0b9a9 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 14 Apr 2019 06:57:21 +0000 Subject: Add RubyVM.reset_debug_counters when RB_DEBUG_COUNTER is defined. It's 0 by default and so it dissappears on actual build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- debug_counter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debug_counter.h') diff --git a/debug_counter.h b/debug_counter.h index b28efb3278..8510bb90f8 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -319,6 +319,8 @@ rb_debug_counter_add(enum rb_debug_counter_type type, int add, int cond) return cond; } +VALUE rb_debug_counter_reset(void); + #define RB_DEBUG_COUNTER_INC(type) rb_debug_counter_add(RB_DEBUG_COUNTER_##type, 1, 1) #define RB_DEBUG_COUNTER_INC_UNLESS(type, cond) (!rb_debug_counter_add(RB_DEBUG_COUNTER_##type, 1, !(cond))) #define RB_DEBUG_COUNTER_INC_IF(type, cond) rb_debug_counter_add(RB_DEBUG_COUNTER_##type, 1, (cond)) -- cgit v1.2.3