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

Method NewStat

stat.go:162–164  ·  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

160//
161// Deprecated: Use fs.Stat() instead.
162func (fs FS) NewStat() (Stat, error) {
163 return fs.Stat()
164}
165
166// Stat returns information about current cpu/process statistics.
167// See: https://www.kernel.org/doc/Documentation/filesystems/proc.txt

Callers

nothing calls this directly

Calls 1

StatMethod · 0.95

Tested by

no test coverage detected