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

Method NetDev

net_dev.go:51–53  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

49
50// NetDev returns kernel/system statistics read from /proc/net/dev.
51func (fs FS) NetDev() (NetDev, error) {
52 return newNetDev(fs.proc.Path("net/dev"))
53}
54
55// NetDev returns kernel/system statistics read from /proc/[pid]/net/dev.
56func (p Proc) NetDev() (NetDev, error) {

Callers 2

TestNetDevFunction · 0.95
TestProcNetDevFunction · 0.45

Calls 2

newNetDevFunction · 0.85
PathMethod · 0.45

Tested by 2

TestNetDevFunction · 0.76
TestProcNetDevFunction · 0.36