Home
last modified time | relevance | path

Searched refs:cpu_stat (Results 1 – 5 of 5) sorted by relevance

/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.cc248 auto* cpu_stat = sys_stats->add_cpu_stat(); in ReadStat() local
249 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()
Dsys_stats_data_source_unittest.cc323 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()
/external/perfetto/protos/perfetto/trace/sys_stats/
Dsys_stats.proto52 repeated CpuTimes cpu_stat = 3; // One entry per cpu. field
/external/perfetto/src/trace_processor/
Dproto_trace_parser.cc367 for (auto it = sys_stats.cpu_stat(); it; ++it) { in ParseSysStats()
/external/perfetto/protos/perfetto/trace/
Dperfetto_trace.proto2821 repeated CpuTimes cpu_stat = 3; // One entry per cpu. field