cxsysinfodebug

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 8 Imported by: 2

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL