We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62c1555 commit 87c6e19Copy full SHA for 87c6e19
src/runtime/gc_leaking.go
@@ -79,6 +79,9 @@ func ReadMemStats(m *MemStats) {
79
m.Mallocs = gcMallocs
80
m.Frees = gcFrees
81
m.Sys = uint64(heapEnd - heapStart)
82
+ // no free -- current in use heap is the total allocated
83
+ m.HeapAlloc = gcTotalAlloc
84
+ m.Alloc = m.HeapAlloc
85
}
86
87
func GC() {
0 commit comments