Commit 5539ef02 authored by Russ Cox's avatar Russ Cox

runtime: make times in GODEBUG=gctrace=1 output clearer

TBR=0intro
CC=golang-codereviews
https://golang.org/cl/86620043
parent bfbb2e82
...@@ -2440,10 +2440,10 @@ gc(struct gc_args *args) ...@@ -2440,10 +2440,10 @@ gc(struct gc_args *args)
stats.nosyield += work.markfor->nosyield; stats.nosyield += work.markfor->nosyield;
stats.nsleep += work.markfor->nsleep; stats.nsleep += work.markfor->nsleep;
runtime·printf("gc%d(%d): %D+%D+%D ms, %D -> %D MB, %D (%D-%D) objects," runtime·printf("gc%d(%d): %D+%D+%D+%D us, %D -> %D MB, %D (%D-%D) objects,"
" %d/%d/%d sweeps," " %d/%d/%d sweeps,"
" %D(%D) handoff, %D(%D) steal, %D/%D/%D yields\n", " %D(%D) handoff, %D(%D) steal, %D/%D/%D yields\n",
mstats.numgc, work.nproc, (t3-t2)/1000000, (t2-t1)/1000000, (t1-t0+t4-t3)/1000000, mstats.numgc, work.nproc, (t1-t0)/1000, (t2-t1)/1000, (t3-t2)/1000, (t4-t3)/1000,
heap0>>20, heap1>>20, obj, heap0>>20, heap1>>20, obj,
mstats.nmalloc, mstats.nfree, mstats.nmalloc, mstats.nfree,
sweep.nspan, gcstats.nbgsweep, gcstats.npausesweep, sweep.nspan, gcstats.nbgsweep, gcstats.npausesweep,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment