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

Method NetDev

net_dev.go:56–58  ·  view source on GitHub ↗

NetDev returns kernel/system statistics read from /proc/[pid]/net/dev.

()

Source from the content-addressed store, hash-verified

54
55// NetDev returns kernel/system statistics read from /proc/[pid]/net/dev.
56func (p Proc) NetDev() (NetDev, error) {
57 return newNetDev(p.path("net/dev"))
58}
59
60// newNetDev creates a new NetDev from the contents of the given file.
61func newNetDev(file string) (NetDev, error) {

Callers

nothing calls this directly

Calls 2

pathMethod · 0.95
newNetDevFunction · 0.85

Tested by

no test coverage detected