Ruby  2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
Macros | Enumerations | Functions
debug_counter.h File Reference

Go to the source code of this file.

Macros

#define USE_DEBUG_COUNTER   0
 
#define RUBY_DEBUG_COUNTER_H   1
 
#define RB_DEBUG_COUNTER(name)   RB_DEBUG_COUNTER_##name,
 
#define RB_DEBUG_COUNTER_INC(type)   ((void)0)
 
#define RB_DEBUG_COUNTER_INC_UNLESS(type, cond)   (cond)
 
#define RB_DEBUG_COUNTER_INC_IF(type, cond)   (cond)
 

Enumerations

enum  rb_debug_counter_type { RB_DEBUG_COUNTER_MAX }
 

Functions

void rb_debug_counter_show_results (const char *msg)
 
RUBY_SYMBOL_EXPORT_BEGIN size_t ruby_debug_counter_get (const char **names_ptr, size_t *counters_ptr)
 
void ruby_debug_counter_reset (void)
 
void ruby_debug_counter_show_at_exit (int enable)
 

Macro Definition Documentation

◆ RB_DEBUG_COUNTER

#define RB_DEBUG_COUNTER (   name)    RB_DEBUG_COUNTER_##name,

Definition at line 349 of file debug_counter.h.

◆ RB_DEBUG_COUNTER_INC

#define RB_DEBUG_COUNTER_INC (   type)    ((void)0)

Definition at line 375 of file debug_counter.h.

◆ RB_DEBUG_COUNTER_INC_IF

#define RB_DEBUG_COUNTER_INC_IF (   type,
  cond 
)    (cond)

Definition at line 377 of file debug_counter.h.

◆ RB_DEBUG_COUNTER_INC_UNLESS

#define RB_DEBUG_COUNTER_INC_UNLESS (   type,
  cond 
)    (cond)

Definition at line 376 of file debug_counter.h.

◆ RUBY_DEBUG_COUNTER_H

#define RUBY_DEBUG_COUNTER_H   1

Definition at line 342 of file debug_counter.h.

◆ USE_DEBUG_COUNTER

#define USE_DEBUG_COUNTER   0

Definition at line 12 of file debug_counter.h.

Enumeration Type Documentation

◆ rb_debug_counter_type

Enumerator
RB_DEBUG_COUNTER_MAX 

Definition at line 348 of file debug_counter.h.

Function Documentation

◆ rb_debug_counter_show_results()

void rb_debug_counter_show_results ( const char *  msg)

Definition at line 116 of file debug_counter.c.

Referenced by ruby_default_signal().

◆ ruby_debug_counter_get()

RUBY_SYMBOL_EXPORT_BEGIN size_t ruby_debug_counter_get ( const char **  names_ptr,
size_t *  counters_ptr 
)

Definition at line 121 of file debug_counter.c.

◆ ruby_debug_counter_reset()

void ruby_debug_counter_reset ( void  )

Definition at line 126 of file debug_counter.c.

◆ ruby_debug_counter_show_at_exit()

void ruby_debug_counter_show_at_exit ( int  enable)

Definition at line 131 of file debug_counter.c.