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
Steven Hartland 6450c60b61 Eliminate use of sysctl command on FreeBSD
In order to improve performance and help prevent crashes due to the outstanding fork crash bug:
https://github.com/golang/go/issues/15658

Replace string parsed values from the sysctl command with native reads of sysctl values using unix.SysctlRaw and unix.SysctlUint32.

This also merges OpenBSD and FreeBSD load implementations which are identical.
8 years ago
..
testdata [cpu]linux: add testcode with testdata. 8 years ago
cpu.go clarify return value of cpu.Percent() 8 years ago
cpu_darwin.go Addressing frequency unit discrepancies 9 years ago
cpu_darwin_cgo.go cpu[darwin]: fix Go arrays panic in cgo #279 8 years ago
cpu_darwin_nocgo.go fixed by golint. 9 years ago
cpu_fallback.go fix build bugs. 8 years ago
cpu_freebsd.go Eliminate use of sysctl command on FreeBSD 8 years ago
cpu_freebsd_386.go Eliminate use of sysctl command on FreeBSD 8 years ago
cpu_freebsd_amd64.go Eliminate use of sysctl command on FreeBSD 8 years ago
cpu_freebsd_test.go fix typo 8 years ago
cpu_linux.go Only read /proc/stat once when cpu.Times(true) is called on Linux 8 years ago
cpu_linux_test.go [cpu]linux: add testcode with testdata. 8 years ago
cpu_openbsd.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 8 years ago
cpu_solaris.go error strings change to lowercase 8 years ago
cpu_solaris_test.go rename expected dir to testdata. 8 years ago
cpu_test.go separate freebsd specific test code. 8 years ago
cpu_windows.go set win cpu total name to "cpu-total" 8 years ago