aboutsummaryrefslogtreecommitdiffstats
path: root/debug_counter.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-28 01:10:43 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-28 01:10:43 +0000
commitdf5ec4107d6c91fba05fb7cadac82c2371aec152 (patch)
tree2afeb4995ee59d5b0ae1da433a51dfb6da0c0cc7 /debug_counter.c
parent0e3e0f824966c9c05870b2dbac88c0a8eef2b579 (diff)
downloadruby-df5ec4107d6c91fba05fb7cadac82c2371aec152.tar.gz
add debug counters more.
* debug_counter.h: add the following counters. * frame_push: control frame counts (total counts). * frame_push_*: control frame counts per every frame type. * obj_*: add free'ed counts for each type. * gc.c: ditto. * vm_insnhelper.c (vm_push_frame): ditto. * debug_counter.c (rb_debug_counter_show_results): widen counts field to show >10G numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug_counter.c')
-rw-r--r--debug_counter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_counter.c b/debug_counter.c
index b67e03ade6..8c4004af41 100644
--- a/debug_counter.c
+++ b/debug_counter.c
@@ -34,7 +34,7 @@ rb_debug_counter_show_results(const char *msg)
int i;
fprintf(stderr, "[RUBY_DEBUG_COUNTER]\t%d %s\n", getpid(), msg);
for (i=0; i<RB_DEBUG_COUNTER_MAX; i++) {
- fprintf(stderr, "[RUBY_DEBUG_COUNTER]\t%-30s\t%'12"PRIuSIZE"\n",
+ fprintf(stderr, "[RUBY_DEBUG_COUNTER]\t%-30s\t%'14"PRIuSIZE"\n",
debug_counter_names[i],
rb_debug_counter[i]);
}