MCPcopy Create free account
hub / github.com/prometheus/procfs / NewStat

Function NewStat

stat.go:150–156  ·  view source on GitHub ↗

NewStat returns information about current cpu/process statistics. See https://www.kernel.org/doc/Documentation/filesystems/proc.txt Deprecated: Use fs.Stat() instead.

()

Source from the content-addressed store, hash-verified

148//
149// Deprecated: Use fs.Stat() instead.
150func NewStat() (Stat, error) {
151 fs, err := NewFS(fs.DefaultProcMountPoint)
152 if err != nil {
153 return Stat{}, err
154 }
155 return fs.Stat()
156}
157
158// NewStat returns information about current cpu/process statistics.
159// See: https://www.kernel.org/doc/Documentation/filesystems/proc.txt

Callers

nothing calls this directly

Calls 2

StatMethod · 0.95
NewFSFunction · 0.70

Tested by

no test coverage detected