Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Allocations tracks number of memory allocations Allocations atomic.Uint64 // Frees tracks number of memory frees Frees atomic.Uint64 )
Functions ¶
func AssertMemoryExpectation ¶
AssertMemoryExpectation makes sure the allocations match the provided value
func AssertMemoryUsage ¶
AssertMemoryUsage makes sure the allocations and frees match
func InitMemoryTracker ¶
func InitMemoryTracker()
InitMemoryTracker initializes RTLoader memory tracking
func ResetMemoryStats ¶
func ResetMemoryStats()
ResetMemoryStats resets allocations and frees counters to zero
func TrackedCString ¶
TrackedCString returns an allocation-tracked pointer to a string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.