Searched refs:cpu_stat (Results 1 – 5 of 5) sorted by relevance
248 auto* cpu_stat = sys_stats->add_cpu_stat(); in ReadStat() local249 cpu_stat->set_cpu_id(static_cast<uint32_t>(cpu_id)); in ReadStat()250 cpu_stat->set_user_ns(cpu_times[0] * ns_per_user_hz_); in ReadStat()251 cpu_stat->set_user_ice_ns(cpu_times[1] * ns_per_user_hz_); in ReadStat()252 cpu_stat->set_system_mode_ns(cpu_times[2] * ns_per_user_hz_); in ReadStat()253 cpu_stat->set_idle_ns(cpu_times[3] * ns_per_user_hz_); in ReadStat()254 cpu_stat->set_io_wait_ns(cpu_times[4] * ns_per_user_hz_); in ReadStat()255 cpu_stat->set_irq_ns(cpu_times[5] * ns_per_user_hz_); in ReadStat()256 cpu_stat->set_softirq_ns(cpu_times[6] * ns_per_user_hz_); in ReadStat()
323 EXPECT_EQ(sys_stats.cpu_stat(0).user_ns(), 762178 * 10000000ull); in TEST_F()324 EXPECT_EQ(sys_stats.cpu_stat(0).system_mode_ns(), 902284 * 10000000ull); in TEST_F()325 EXPECT_EQ(sys_stats.cpu_stat(0).softirq_ns(), 68262 * 10000000ull); in TEST_F()326 EXPECT_EQ(sys_stats.cpu_stat(7).user_ns(), 180484 * 10000000ull); in TEST_F()327 EXPECT_EQ(sys_stats.cpu_stat(7).system_mode_ns(), 139874 * 10000000ull); in TEST_F()328 EXPECT_EQ(sys_stats.cpu_stat(7).softirq_ns(), 13407 * 10000000ull); in TEST_F()
52 repeated CpuTimes cpu_stat = 3; // One entry per cpu. field
367 for (auto it = sys_stats.cpu_stat(); it; ++it) { in ParseSysStats()
2821 repeated CpuTimes cpu_stat = 3; // One entry per cpu. field