Projekte
Auf GitHub ansehen
c9s/goprocinfo
c9s/goprocinfo has 793 GitHub stars and 100 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-21 17:53 UTC. Last push 2021-01-30.
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
Über uns
Linux /proc info parser for Go
EntwicklerwerkzeugeREADME.md
Originalgoprocinfo
/proc information parser for Go.
Usage
import (
"log"
linuxproc "github.com/c9s/goprocinfo/linux"
)
stat, err := linuxproc.ReadStat("/proc/stat")
if err != nil {
log.Fatal("stat read fail")
}
for _, s := range stat.CPUStats {
// s.User
// s.Nice
// s.System
// s.Idle
// s.IOWait
}
// stat.CPUStatAll
// stat.CPUStats
// stat.Processes
// stat.BootTime
// ... etc
Documentation
Full documentation is available at Godoc.
Reference
License
goprocinfo is distributed under the MIT license.
Ähnliche Projekte entdecken
Wird geladen…