mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-14 07:53:40 +00:00
runtime: add MemStats.Mallocs and Frees
This commit is contained in:
@@ -42,6 +42,13 @@ type MemStats struct {
|
||||
// objects are freed.
|
||||
TotalAlloc uint64
|
||||
|
||||
// Mallocs is the cumulative count of heap objects allocated.
|
||||
// The number of live objects is Mallocs - Frees.
|
||||
Mallocs uint64
|
||||
|
||||
// Frees is the cumulative count of heap objects freed.
|
||||
Frees uint64
|
||||
|
||||
// Off-heap memory statistics.
|
||||
//
|
||||
// The following statistics measure runtime-internal
|
||||
|
||||
Reference in New Issue
Block a user