Searched refs:proc_stat (Results 1 – 5 of 5) sorted by relevance
178 ProcStatMap proc_stat; in GetBootTime() local179 ParseProcStat(contents, &proc_stat); in GetBootTime()180 ProcStatMap::const_iterator btime_it = proc_stat.find("btime"); in GetBootTime()181 if (btime_it == proc_stat.end()) in GetBootTime()195 ProcStatMap proc_stat; in GetUserCpuTimeSinceBoot() local196 ParseProcStat(contents, &proc_stat); in GetUserCpuTimeSinceBoot()197 ProcStatMap::const_iterator cpu_it = proc_stat.find("cpu"); in GetUserCpuTimeSinceBoot()198 if (cpu_it == proc_stat.end()) in GetUserCpuTimeSinceBoot()
58 std::ifstream proc_stat("/proc/stat"); in get_cpu_usage() local59 proc_stat.ignore(5); in get_cpu_usage()62 std::getline(proc_stat, first_line); in get_cpu_usage()
27 proc_stat = utils.read_file('/proc/stat')28 for line in proc_stat.split('\n'):
1334 with _open_file('/proc/stat') as proc_stat:1335 cpu_usage_str = proc_stat.readline().split()
17 ![](/docs/images/proc_stat.png "UI showing trace data collected by process stats pollers")