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
James Nugent 49ed700c0d cpu: Implement Solaris support for Info()
This commit adds Solaris(^1) support for the Info() function of package
cpu, with the exception of the L2 cache size which is not trivially
available(^2).

Support is implemented by parsing the output of `isainfo -b -v` (for the
instruction set flags), and `psr-info -p -v` for other information.
Example outputs from a range of different size VMs and Joyent containers
are included as part of the tests.

(^1): This has only been tested with Illumos in the form of SmartOS. I
believe it to be portable to other Illumos distributions but have not
tested on Oracle Solaris.

(^2): Enough support is added here to be usable for my port of
HashiCorp's Nomad to SmartOS.
8 years ago
..
expected cpu: Implement Solaris support for Info() 8 years ago
cpu.go cpu.Percent (Windows): Use the same implementation as on Unix 9 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 9 years ago
cpu_darwin_nocgo.go fixed by golint. 9 years ago
cpu_fallback.go cpu: Implement Solaris support for Info() 8 years ago
cpu_freebsd.go [cpu]freebsd: cpu.Info() now returns CPUInfos same number as CPU nums. 8 years ago
cpu_freebsd_test.go separate freebsd specific test code. 8 years ago
cpu_linux.go Merge pull request #311 from sparrc/cpu-times-panic 8 years ago
cpu_openbsd.go run go fmt ./... 8 years ago
cpu_solaris.go cpu: Implement Solaris support for Info() 8 years ago
cpu_solaris_test.go cpu: Implement Solaris support for Info() 8 years ago
cpu_test.go separate freebsd specific test code. 8 years ago
cpu_windows.go cpu.Percent (Windows): Use the same implementation as on Unix 9 years ago