Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogMemStatsPeriodically ¶
func LogMemStatsPeriodically(period time.Duration, tracker *FileDescriptorTracker)
LogMemStatsPeriodically logs memory and file descriptor stats periodically.
func TotalPhysicalMemory ¶
func TotalPhysicalMemory() int
TotalPhysicalMemory returns the total physical memory of the system.
Types ¶
type FileDescriptorTracker ¶
type FileDescriptorTracker struct {
OpenDescriptors int32
}
FileDescriptorTracker is a struct to track the number of open file descriptors.
Click to show internal directories.
Click to hide internal directories.