mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Avoid doubly showing debug counters
when RubyVM.show_debug_counters is explicitly called.
According to the original description in 70fd099220,
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.
			
			
This commit is contained in:
		
							parent
							
								
									f6a54e6e46
								
							
						
					
					
						commit
						d79890cbfa
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -92,7 +92,8 @@ rb_debug_counter_show_results(const char *msg)
 | 
			
		|||
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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue