runtime: add HeapAlloc to gc_leaking

This commit is contained in:
Damian Gryski
2024-10-08 09:12:01 -07:00
committed by Damian Gryski
parent 62c1555aa8
commit 87c6e19921
+3
View File
@@ -79,6 +79,9 @@ func ReadMemStats(m *MemStats) {
m.Mallocs = gcMallocs
m.Frees = gcFrees
m.Sys = uint64(heapEnd - heapStart)
// no free -- current in use heap is the total allocated
m.HeapAlloc = gcTotalAlloc
m.Alloc = m.HeapAlloc
}
func GC() {