runtime.mstats.heap_live (field)
22 uses
runtime (current package)
mcache.go#L183: atomic.Xadd64(&memstats.heap_live, int64(s.npages*pageSize)-int64(usedBytes))
mcache.go#L234: atomic.Xadd64(&memstats.heap_live, int64(npages*pageSize))
mcache.go#L273: atomic.Xadd64(&memstats.heap_live, -int64(n)*int64(s.elemsize))
mgc.go#L448: if memstats.next_gc < memstats.heap_live+1024*1024 {
mgc.go#L449: memstats.next_gc = memstats.heap_live + 1024*1024
mgc.go#L530: live := atomic.Load64(&memstats.heap_live)
mgc.go#L629: actualGrowthRatio := float64(memstats.heap_live)/float64(memstats.heap_marked) - 1
mgc.go#L652: H_a := memstats.heap_live
mgc.go#L886: sweepMin := atomic.Load64(&memstats.heap_live) + sweepMinHeapDistance
mgc.go#L895: print("runtime: next_gc=", memstats.next_gc, " heap_marked=", memstats.heap_marked, " heap_live=", memstats.heap_live, " initialHeapLive=", work.initialHeapLive, "triggerRatio=", triggerRatio, " minTrigger=", minTrigger, "\n")
mgc.go#L927: heapLiveBasis := atomic.Load64(&memstats.heap_live)
mgc.go#L1272: return memstats.heap_live >= memstats.gc_trigger
mgc.go#L1368: work.heap0 = atomic.Load64(&memstats.heap_live)
mgc.go#L1632: work.heap1 = memstats.heap_live
mgc.go#L2156: memstats.heap_live = work.bytesMarked
mgc.go#L2252: work.initialHeapLive = atomic.Load64(&memstats.heap_live)
mgcsweep.go#L267: print("pacer: sweep done at heap size ", memstats.heap_live>>20, "MB; allocated ", (memstats.heap_live-mheap_.sweepHeapLiveBasis)>>20, "MB during sweep; swept ", mheap_.pagesSwept, " pages at ", sweepRatio, " pages/byte\n")
mgcsweep.go#L648: newHeapLive := uintptr(atomic.Load64(&memstats.heap_live)-mheap_.sweepHeapLiveBasis) + spanBytes
mstats.go#L141: heap_live uint64
mstats.go#L446: if offset := unsafe.Offsetof(memstats.heap_live); offset%8 != 0 {
trace.go#L1146: traceEvent(traceEvHeapAlloc, -1, memstats.heap_live)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |