MCPcopy Create free account
hub / github.com/apache/impala / ReadCurrentProcNetDev

Method ReadCurrentProcNetDev

be/src/util/system-state-info.cc:156–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void SystemStateInfo::ReadCurrentProcNetDev() {
157 string path = "/proc/net/dev";
158 faststring buf;
159 if (!ReadFileOrWarn(path, &buf)) return;
160 ReadProcNetDevString(buf.ToString());
161}
162
163void SystemStateInfo::ReadProcNetDevString(const string& dev_string) {
164 net_val_idx_ = 1 - net_val_idx_;

Callers 1

TEST_FFunction · 0.80

Calls 2

ReadFileOrWarnFunction · 0.85
ToStringMethod · 0.45

Tested by 1

TEST_FFunction · 0.64