You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/cpu
Daniel Theophanes 0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100
10 years ago
..
cpu.go cpu: use wmic to get CPU usage on Windows. 10 years ago
cpu_darwin.go cpu[darwin]: separetes cpu_darwin to cgo and nocgo to get CPUTimes. 10 years ago
cpu_darwin_cgo.go cpu[darwin]: separetes cpu_darwin to cgo and nocgo to get CPUTimes. 10 years ago
cpu_darwin_nocgo.go cpu[darwin]: separetes cpu_darwin to cgo and nocgo to get CPUTimes. 10 years ago
cpu_freebsd.go cpu: fix command output trim problem. 10 years ago
cpu_linux.go common: rename package common to internal/common. Add ENV helper funcs. 10 years ago
cpu_test.go cpu: use wmic to get CPU usage on Windows. 10 years ago
cpu_unix.go cpu: fix build option on unix. 10 years ago
cpu_windows.go Fix cpu percent on windows 10 years ago