diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-29 03:19:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-29 03:19:38 +0000 |
commit | 78625e585207bab02c5c2b905797849996cf5436 (patch) | |
tree | 1a9dc3846a463bf3feeb0df797102c8a5bb863cf | |
parent | 9d27ced3baa15cfc9d3c57b62d8b02e66002c701 (diff) | |
download | ruby-78625e585207bab02c5c2b905797849996cf5436.tar.gz |
gc.c: PRIuSIZE
* gc.c (gc_profile_dump_on): use PRIuSIZE instead of 'zu'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | gc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4151,14 +4151,14 @@ gc_profile_dump_on(VALUE out, VALUE (*append)(VALUE, VALUE)) int index = 1; size_t i; gc_profile_record r; - append(out, rb_sprintf("GC %zu invokes.\n", objspace->count)); + append(out, rb_sprintf("GC %"PRIuSIZE" invokes.\n", objspace->count)); append(out, rb_str_new_cstr("Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n")); for (i = 0; i < count; i++) { r = objspace->profile.record[i]; #if !GC_PROFILE_MORE_DETAIL if (r.is_marked) { #endif - append(out, rb_sprintf("%5d %19.3f %20zu %20zu %20zu %30.20f\n", + append(out, rb_sprintf("%5d %19.3f %20"PRIuSIZE" %20"PRIuSIZE" %20"PRIuSIZE" %30.20f\n", index++, r.gc_invoke_time, r.heap_use_size, r.heap_total_size, r.heap_total_objects, r.gc_time*1000)); #if !GC_PROFILE_MORE_DETAIL @@ -4172,7 +4172,7 @@ gc_profile_dump_on(VALUE out, VALUE (*append)(VALUE, VALUE)) index = 1; for (i = 0; i < count; i++) { r = objspace->profile.record[i]; - append(out, rb_sprintf("%5d %17zu %17zu %9zu %14s %25.20f %25.20f\n", + append(out, rb_sprintf("%5d %17"PRIuSIZE" %17"PRIuSIZE" %9"PRIuSIZE" %14s %25.20f %25.20f\n", index++, r.allocate_increase, r.allocate_limit, r.heap_use_slots, (r.have_finalize ? "true" : "false"), r.gc_mark_time*1000, r.gc_sweep_time*1000)); |