Home
last modified time | relevance | path

Searched refs:new_cpu (Results 1 – 2 of 2) sorted by relevance

/system/extras/cpustats/
Dcpustats.c60 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu,
62 static void print_freq_stats(struct cpu_info *new_cpu, struct cpu_info *old_cpu);
310 static void print_cpu_stats(char *label, struct cpu_info *new_cpu, struct cpu_info *old_cpu, in print_cpu_stats() argument
315 total_delta_time = get_cpu_total_time(new_cpu) - get_cpu_total_time(old_cpu); in print_cpu_stats()
318 new_cpu->utime - old_cpu->utime, in print_cpu_stats()
319 new_cpu->ntime - old_cpu->ntime, in print_cpu_stats()
320 new_cpu->stime - old_cpu->stime, in print_cpu_stats()
321 new_cpu->itime - old_cpu->itime, in print_cpu_stats()
322 new_cpu->iowtime - old_cpu->iowtime, in print_cpu_stats()
323 new_cpu->irqtime - old_cpu->irqtime, in print_cpu_stats()
[all …]
/system/core/toolbox/
Dtop.c90 static struct cpu_info old_cpu, new_cpu; variable
186 memcpy(&old_cpu, &new_cpu, sizeof(old_cpu)); in top_main()
242 fscanf(file, "cpu %lu %lu %lu %lu %lu %lu %lu", &new_cpu.utime, &new_cpu.ntime, &new_cpu.stime, in read_procs()
243 &new_cpu.itime, &new_cpu.iowtime, &new_cpu.irqtime, &new_cpu.sirqtime); in read_procs()
431 total_delta_time = (new_cpu.utime + new_cpu.ntime + new_cpu.stime + new_cpu.itime in print_procs()
432 + new_cpu.iowtime + new_cpu.irqtime + new_cpu.sirqtime) in print_procs()
440 … ((new_cpu.utime + new_cpu.ntime) - (old_cpu.utime + old_cpu.ntime)) * 100 / total_delta_time, in print_procs()
441 ((new_cpu.stime ) - (old_cpu.stime)) * 100 / total_delta_time, in print_procs()
442 ((new_cpu.iowtime) - (old_cpu.iowtime)) * 100 / total_delta_time, in print_procs()
443 ((new_cpu.irqtime + new_cpu.sirqtime) in print_procs()
[all …]