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
Johan Walles ebaa641e63 Make a public function for computing total CPU time
This function used to be a private part of process.go.

Since I needed that functionality however I think it's better to make it public
than for me to copy it into my own code.

As a side effect of this change, I also fixed a bug in the function where Stolen
was not part of the sum. Having the function close to the CPUTimesStat
declaration will make problems like this less likely to re-occur in the future.
9 years ago
..
cpu.go Make a public function for computing total CPU time 9 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 Rebrandoning back. 10 years ago
cpu_freebsd.go Rebrandoning back. 10 years ago
cpu_linux.go Rebrandoning back. 10 years ago
cpu_test.go cpu: fix cpu test on small ARM device where CPU can be at 100%+rounding. 10 years ago
cpu_unix.go Removing race condition in CPUPercent calculation. 10 years ago
cpu_windows.go Rebrandoning back. 10 years ago