ruby-changes:60408
From: Takashi <ko1@a...>
Date: Sun, 15 Mar 2020 18:27:04 +0900 (JST)
Subject: [ruby-changes:60408] d79890cbfa (master): Avoid doubly showing debug counters
https://git.ruby-lang.org/ruby.git/commit/?id=d79890cbfa From d79890cbfaa32444e3bab60835d7f09abf3d9469 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 15 Mar 2020 02:25:46 -0700 Subject: Avoid doubly showing debug counters when RubyVM.show_debug_counters is explicitly called. According to the original description in 70fd099220446e39bb80eb0bb32870ce12134619, I think it's not intended to use the exit counter at all, and I'd like to skip it when I need to explicitly call this. diff --git a/debug_counter.c b/debug_counter.c index 11ec57a..af85811 100644 --- a/debug_counter.c +++ b/debug_counter.c @@ -92,7 +92,8 @@ rb_debug_counter_show_results(const char *msg) https://github.com/ruby/ruby/blob/trunk/debug_counter.c#L92 VALUE rb_debug_counter_show(RB_UNUSED_VAR(VALUE klass)) { - rb_debug_counter_show_results("method call"); + rb_debug_counter_show_results("show_debug_counters"); + ruby_debug_counter_show_at_exit(FALSE); return Qnil; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/