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/process
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
..
expected/darwin proces[darwin]: change exec.Command to interface to enable mocking. 10 years ago
binary.go process: use syscall in common on darwin 10 years ago
process.go Make a public function for computing total CPU time 9 years ago
process_darwin.go 1)fix callps command generate error 9 years ago
process_darwin_amd64.go process: fix darwin kinfo_proc struct and introduce creation by godef. 10 years ago
process_freebsd.go net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile. 9 years ago
process_freebsd_386.go process[freebsd]: Cmdline, IOCounters, CPUTimes implemented 10 years ago
process_freebsd_amd64.go process[freebsd]: Cmdline, IOCounters, CPUTimes implemented 10 years ago
process_linux.go fix meminfo output on consecutive calls 9 years ago
process_linux_386.go + host and process for linux 386 10 years ago
process_linux_amd64.go change package name. 11 years ago
process_linux_arm.go change package name. 11 years ago
process_posix.go change package name. 11 years ago
process_posix_test.go change package name. 11 years ago
process_test.go process[linux,freebsd,darwin]: implements Children using pgrep. 10 years ago
process_windows.go net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile. 9 years ago
types_darwin.go process: fix darwin kinfo_proc struct and introduce creation by godef. 10 years ago