diff options
author | Koichi Sasada <[email protected]> | 2019-12-25 01:32:37 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2019-12-25 01:34:41 +0900 |
commit | 5220145ea289d9eb955b373f31773fab2d4f0271 (patch) | |
tree | 5811125552a6c380c231e166e21035ab19e72b47 /debug_counter.h | |
parent | 9b617ffa8884f9f80a0b1bdb89169d8139ba5001 (diff) |
add debug_counter access functions.
These functions are enabled only on USE_DEBUG_COUNTER=1.
Diffstat (limited to 'debug_counter.h')
-rw-r--r-- | debug_counter.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/debug_counter.h b/debug_counter.h index b9515f4802..066533d1d1 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -353,8 +353,6 @@ enum rb_debug_counter_type { }; #if USE_DEBUG_COUNTER -#include "ruby/ruby.h" - extern size_t rb_debug_counter[]; inline static int @@ -381,4 +379,12 @@ VALUE rb_debug_counter_show(VALUE klass); 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); + +RUBY_SYMBOL_EXPORT_END + #endif /* RUBY_DEBUG_COUNTER_H */ |