shirou_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.
2017-10-05 08:45:56 +01:00
..
testdata [cpu]linux: add testcode with testdata. 2017-09-20 15:58:30 +09:00
cpu.go clarify return value of cpu.Percent() 2017-03-31 16:07:44 +02:00
cpu_darwin.go Addressing frequency unit discrepancies 2016-08-23 17:21:30 -07:00
cpu_darwin_cgo.go cpu[darwin]: fix Go arrays panic in cgo #279 2016-11-15 00:53:20 +09:00
cpu_darwin_nocgo.go fixed by golint. 2016-04-01 21:34:39 +09:00
cpu_fallback.go fix build bugs. 2017-04-10 22:24:36 +09:00
cpu_freebsd.go Eliminate use of sysctl command on FreeBSD 2017-10-05 08:45:56 +01:00
cpu_freebsd_386.go Eliminate use of sysctl command on FreeBSD 2017-10-05 08:45:56 +01:00
cpu_freebsd_amd64.go Eliminate use of sysctl command on FreeBSD 2017-10-05 08:45:56 +01:00
cpu_freebsd_test.go fix typo 2017-03-15 23:32:55 +09:00
cpu_linux.go Only read /proc/stat once when cpu.Times(true) is called on Linux 2017-06-09 22:34:58 -04:00
cpu_linux_test.go [cpu]linux: add testcode with testdata. 2017-09-20 15:58:30 +09:00
cpu_openbsd.go Move from the `syscall` package to the `golang.org/x/sys/{unix,windows}` 2017-06-02 13:51:00 -07:00
cpu_solaris.go error strings change to lowercase 2017-03-15 22:43:20 +09:00
cpu_solaris_test.go rename expected dir to testdata. 2017-03-15 23:01:06 +09:00
cpu_test.go separate freebsd specific test code. 2017-01-29 01:43:24 +09:00
cpu_windows.go set win cpu total name to "cpu-total" 2017-07-20 11:47:15 +08:00