プロジェクト
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-22 15:33 UTC. Last push 2021-01-30.
計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
概要
Linux /proc info parser for Go
開発ツールREADME.md
オリジナルgoprocinfo
/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.
関連プロジェクトを探す
読み込み中…