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
Tobias Klauser ee12f66e4d cpu, v3/cpu: use sysconf package instead of exec'ing getconf
Currently, ClocksPerSec is determined by exec'ing getconf in func init,
i.e. on startup of every program importing the package. getconf might
not be present on some systems or is not executable by the current user.
To avoid this hard to control dependency, use the
github.com/tklauser/go-sysconf package which implements sysconf(3)
entirely in Go without cgo. The package is supported on all platforms
currently supported by the cpu and v3/cpu package of gopsutil.
4 years ago
..
testdata [cpu]linux: add testcode with testdata. 8 years ago
cpu.go use cancelable sleep in cpu.PercentWithContext and process.Process.PercentWithContext 5 years ago
cpu_darwin.go cpu, v3/cpu: use sysconf package instead of exec'ing getconf 4 years ago
cpu_darwin_cgo.go cpu[darwin]: fix Go arrays panic in cgo #279 8 years ago
cpu_darwin_nocgo.go revert imports 6 years ago
cpu_dragonfly.go cpu, v3/cpu: use sysconf package instead of exec'ing getconf 4 years ago
cpu_dragonfly_amd64.go cpu: support for DragonflyBSD 5 years ago
cpu_fallback.go cpu: support for DragonflyBSD 5 years ago
cpu_freebsd.go cpu, v3/cpu: use sysconf package instead of exec'ing getconf 4 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_arm.go add FreeBSD ARM support. copied from i386 6 years ago
cpu_freebsd_arm64.go Add support for freebsd/arm64 5 years ago
cpu_freebsd_test.go revert imports 6 years ago
cpu_linux.go cpu, v3/cpu: use sysconf package instead of exec'ing getconf 4 years ago
cpu_linux_test.go [cpu][linux] Test Counts against lscpu results 5 years ago
cpu_openbsd.go cpu, v3/cpu: use sysconf package instead of exec'ing getconf 4 years ago
cpu_solaris.go cpu, v3/cpu: use sysconf package instead of exec'ing getconf 4 years ago
cpu_solaris_test.go cpu: Check for error object 7 years ago
cpu_test.go fix test and openbsd errors. 4 years ago
cpu_windows.go renamed CLK_TCK variables for consistency across OSs 5 years ago