Home
last modified time | relevance | path

Searched refs:old_cpu (Results 1 – 3 of 3) sorted by relevance

/system/extras/cpustats/
Dcpustats.c61 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu,
63 static void print_freq_stats(struct cpu_info *new_cpu, struct cpu_info *old_cpu);
317 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu, in print_cpu_stats() argument
322 total_delta_time = get_cpu_total_time(new_cpu) - get_cpu_total_time(old_cpu); in print_cpu_stats()
325 new_cpu->utime - old_cpu->utime, in print_cpu_stats()
326 new_cpu->ntime - old_cpu->ntime, in print_cpu_stats()
327 new_cpu->stime - old_cpu->stime, in print_cpu_stats()
328 new_cpu->itime - old_cpu->itime, in print_cpu_stats()
329 new_cpu->iowtime - old_cpu->iowtime, in print_cpu_stats()
330 new_cpu->irqtime - old_cpu->irqtime, in print_cpu_stats()
[all …]
/system/core/toolbox/
Dtop.c92 static struct cpu_info old_cpu, new_cpu; variable
186 memcpy(&old_cpu, &new_cpu, sizeof(old_cpu)); in top_main()
449 - (old_cpu.utime + old_cpu.ntime + old_cpu.stime + old_cpu.itime in print_procs()
450 + old_cpu.iowtime + old_cpu.irqtime + old_cpu.sirqtime); in print_procs()
456 … ((new_cpu.utime + new_cpu.ntime) - (old_cpu.utime + old_cpu.ntime)) * 100 / total_delta_time, in print_procs()
457 ((new_cpu.stime ) - (old_cpu.stime)) * 100 / total_delta_time, in print_procs()
458 ((new_cpu.iowtime) - (old_cpu.iowtime)) * 100 / total_delta_time, in print_procs()
460 - (old_cpu.irqtime + old_cpu.sirqtime)) * 100 / total_delta_time); in print_procs()
462 new_cpu.utime - old_cpu.utime, in print_procs()
463 new_cpu.ntime - old_cpu.ntime, in print_procs()
[all …]
/system/extras/ANRdaemon/
DANRdaemon.cpp96 static cpu_stat_t old_cpu; variable
166 diff_idle = new_cpu.itime - old_cpu.itime; in is_heavy_load()
167 diff_total = new_cpu.total - old_cpu.total; in is_heavy_load()
168 old_cpu = new_cpu; in is_heavy_load()
306 get_cpu_stat(&old_cpu); in start()