package
0.0.0-20210724093922-c95b7eeff255
Repository: https://github.com/frankhang/util.git
Documentation: pkg.go.dev
# Functions
MemTotal returns the total amount of RAM on this system.
MemUsed returns the total used amount of RAM on this system.
NewTracker creates a memory tracker.
# Constants
PanicMemoryExceed represents the panic message when out of memory quota.
# Structs
LogOnExceed logs a warning only once when memory usage exceeds memory quota.
PanicOnExceed panics when memory usage exceeds memory quota.
Tracker is used to track the memory usage during query execution.
# Interfaces
ActionOnExceed is the action taken when memory usage exceeds memory quota.