diff options
| author | Austin Clements <austin@google.com> | 2015-12-11 17:50:22 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2015-12-15 16:15:59 +0000 |
| commit | 4ad64cadf8a5d1b57c8af4ae146d83cd0ea97cae (patch) | |
| tree | 8807a9632946209d0f6d7499a510f33e8d0d090f /src | |
| parent | c1cbe5b577b1bfdc34be18f391ab82904b6530f2 (diff) | |
| download | go-4ad64cadf8a5d1b57c8af4ae146d83cd0ea97cae.tar.xz | |
runtime: trace sweep completion in gcpacertrace mode
Change-Id: I7991612e4d064c15492a39c19f753df1db926203
Reviewed-on: https://go-review.googlesource.com/17747
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/mgcsweep.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/mgcsweep.go b/src/runtime/mgcsweep.go index 2cf6def338..b00ceb0a8a 100644 --- a/src/runtime/mgcsweep.go +++ b/src/runtime/mgcsweep.go @@ -95,6 +95,9 @@ func sweepone() uintptr { if idx >= uint32(len(work.spans)) { mheap_.sweepdone = 1 _g_.m.locks-- + if debug.gcpacertrace > 0 && idx == uint32(len(work.spans)) { + print("pacer: sweep done at heap size ", memstats.heap_live>>20, "MB; allocated ", mheap_.spanBytesAlloc>>20, "MB of spans; swept ", mheap_.pagesSwept, " pages\n") + } return ^uintptr(0) } s := work.spans[idx] |
