Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ID = os.Getpid()
ID - self process id
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct { // CPU usage total: 0.5 = 50% of core, 2.0 = 100% of two core CPU float64 // RMemory - redident memory usage in bytes RMemory uint64 // VMemory - virtual memory usage in bytes VMemory uint64 // contains filtered or unexported fields }
Monitor process stats
func StartMonitor ¶
StartMonitor process - self process on pid == 0
Click to show internal directories.
Click to hide internal directories.