Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SkipCleanupRoutine = false BlockExecutionThreshold = uint64(0.1 * float64(TotalMemory())) TriggerCleanupThreshold = uint64(0.5 * float64(TotalMemory())) )
Functions ¶
func AvailableMemory ¶
func AvailableMemory() uint64
func Lock ¶
Lock ensures only one execution of the memory checking process and holds the code execution where the function is called
func LockWithTrigger ¶ added in v0.0.19
LockWithTrigger ensures only one execution of the memory checking process and holds the code execution where the function is called
func SizeInString ¶
func SizeOf ¶
Of returns the size of 'v' in bytes. If there is an error during calculation, Of returns -1.
func SizeOfString ¶
func TotalMemory ¶
func TotalMemory() uint64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.