mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 03:27:48 +00:00
runtime: add HeapAlloc to gc_leaking
This commit is contained in:
committed by
Damian Gryski
parent
62c1555aa8
commit
87c6e19921
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user