package
0.0.0-20210525032257-e7b9574609c3
Repository: https://github.com/studyzy/sqlparse.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.
NewGlobalTracker creates a global tracker, its isGlobal is default as true.
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.