runtime: make MemStats available to leaking collector

This commit is contained in:
Damian Gryski
2022-08-09 14:01:43 -07:00
committed by Ron Evans
parent ee94f92ede
commit b56baa7aad
4 changed files with 45 additions and 24 deletions
+2
View File
@@ -13,6 +13,8 @@ import (
const gcAsserts = false // perform sanity checks
var gcTotalAlloc uint64 // for runtime.MemStats
func alloc(size uintptr, layout unsafe.Pointer) unsafe.Pointer
func realloc(ptr unsafe.Pointer, size uintptr) unsafe.Pointer