Documentation
¶
Overview ¶
Package sys provides system utilities for monitoring network connections and CPU usage. Platform-specific implementations are provided for Windows, Linux, and macOS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUPercentRaw ¶
CPUPercentRaw returns instantaneous total CPU utilization by reading /proc/stat. First call initializes and returns 0; subsequent calls return busy/total * 100.
func GetTCPCount ¶
GetTCPCount returns the number of active TCP connections by reading /proc/net/tcp and /proc/net/tcp6 when available.
func GetUDPCount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.