项目
在 GitHub 查看
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.
实测星标增长
- 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.
探索相关项目
加载中…