Registry / utility / power-devops-perfstat

power-devops-perfstat

JSON →
library0.0.0-20221212215047-62379fc7944bgogounverified

Package perfstat provides a Go interface to IBM AIX libperfstat for retrieving system performance statistics.

go get github.com/power-devops/perfstat
INSTALL
IMPORT
SIG · POWER-DEVOPS-PERFS
P
power-devops-perfstat
utilitygov0.0.0-20221212215047-62379fc7944b
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

perfstat
✓ github.com/power-devops/perfstat

Retrieve CPU statistics on AIX.

package main import ( "fmt" "github.com/power-devops/perfstat" ) func main() { stat, err := perfstat.CpuStat() if err != nil { fmt.Println(err) return } fmt.Printf("CPU user: %d\n", stat.User) }
Debug
Known issues
gotchaThis package only works on AIX systems with bos.perf.libperfstat installed.
fix
Ensure the required AIX library is present; the package will not compile on other platforms.
affects: all
Upgrade
Version history
0.0.0-20221212215047-62379fc7944blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
power-devops-perfstat — go get power-devops-perfstat · libregistry