Home
last modified time | relevance | path

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

/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.cc277 auto* cpu_stat = sys_stats->add_cpu_stat(); in ReadStat() local
278 cpu_stat->set_cpu_id(static_cast<uint32_t>(cpu_id)); in ReadStat()
279 cpu_stat->set_user_ns(cpu_times[0] * ns_per_user_hz_); in ReadStat()
280 cpu_stat->set_user_ice_ns(cpu_times[1] * ns_per_user_hz_); in ReadStat()
281 cpu_stat->set_system_mode_ns(cpu_times[2] * ns_per_user_hz_); in ReadStat()
282 cpu_stat->set_idle_ns(cpu_times[3] * ns_per_user_hz_); in ReadStat()
283 cpu_stat->set_io_wait_ns(cpu_times[4] * ns_per_user_hz_); in ReadStat()
284 cpu_stat->set_irq_ns(cpu_times[5] * ns_per_user_hz_); in ReadStat()
285 cpu_stat->set_softirq_ns(cpu_times[6] * ns_per_user_hz_); in ReadStat()
Dsys_stats_data_source_unittest.cc347 EXPECT_EQ(sys_stats.cpu_stat()[0].user_ns(), 762178 * 10000000ull); in TEST_F()
348 EXPECT_EQ(sys_stats.cpu_stat()[0].system_mode_ns(), 902284 * 10000000ull); in TEST_F()
349 EXPECT_EQ(sys_stats.cpu_stat()[0].softirq_ns(), 68262 * 10000000ull); in TEST_F()
350 EXPECT_EQ(sys_stats.cpu_stat()[7].user_ns(), 180484 * 10000000ull); in TEST_F()
351 EXPECT_EQ(sys_stats.cpu_stat()[7].system_mode_ns(), 139874 * 10000000ull); in TEST_F()
352 EXPECT_EQ(sys_stats.cpu_stat()[7].softirq_ns(), 13407 * 10000000ull); in TEST_F()
/external/igt-gpu-tools/overlay/
Dcpu-top.c45 struct cpu_stat *s = &cpu->stat[cpu->count++&1]; in cpu_top_update()
46 struct cpu_stat *d = &cpu->stat[cpu->count&1]; in cpu_top_update()
Dcpu-top.h36 struct cpu_stat { struct
/external/perfetto/protos/perfetto/trace/sys_stats/
Dsys_stats.proto51 repeated CpuTimes cpu_stat = 3; // One entry per cpu. field
/external/perfetto/src/trace_processor/importers/proto/
Dsystem_probes_parser.cc129 for (auto it = sys_stats.cpu_stat(); it; ++it) { in ParseSysStats()
/external/perfetto/protos/perfetto/trace/
Dperfetto_trace.proto6469 repeated CpuTimes cpu_stat = 3; // One entry per cpu. field