mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
This commit is contained in:
parent
57f9a700d7
commit
5ce28c0642
3 changed files with 14 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue