aboutsummaryrefslogtreecommitdiffstats
path: root/debug_counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug_counter.c')
-rw-r--r--debug_counter.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/debug_counter.c b/debug_counter.c
index b5a0606454..4a0655380f 100644
--- a/debug_counter.c
+++ b/debug_counter.c
@@ -43,6 +43,15 @@ rb_debug_counter_show_results(const char *msg)
}
}
+VALUE
+rb_debug_counter_reset(void)
+{
+ for (int i = 0; i < RB_DEBUG_COUNTER_MAX; i++) {
+ rb_debug_counter[i] = 0;
+ }
+ return Qnil;
+}
+
__attribute__((destructor))
static void
debug_counter_show_results_at_exit(void)