Registry / observability / strucoder-pidusage

strucoder-pidusage

JSON →
library0.2.1gogounverified

pidusage provides CPU and memory usage statistics for a given process ID.

go get github.com/struCoder/pidusage
INSTALL
IMPORT
SIG · STRUCODER-PIDUSAGE
S
strucoder-pidusage
observabilitygov0.2.1
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.

pidusage
github.com/struCoder/pidusage

Get CPU and memory usage for PID 1

package main import ( "fmt" "github.com/struCoder/pidusage" ) func main() { stat, err := pidusage.GetStat(1) if err != nil { panic(err) } fmt.Printf("CPU: %f, Memory: %f\n", stat.CPU, stat.Memory) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
18
OpenAI (training)
1
Resources
strucoder-pidusage — go get strucoder-pidusage · libregistry