Lines Matching refs:cpu_time_ranges
413 def CalcTimeRangesByCPU(line, cpu, cpu_time_ranges, max_time): argument
414 cpu_time_range = cpu_time_ranges[cpu]
428 def CountSamplesByCPU(line, cpu, cpu_time_ranges): argument
430 cpu_time_ranges[cpu].sample_cnt += 1
434 print("len(cpu_time_ranges)", len(cpu_time_ranges))
500 cpu_time_ranges = [ CPUTimeRange(cpu) for cpu in range(nr_cpus) ]
503 cpu_time_ranges = [ CPUTimeRange(-1) ]
511 ProcessCommandOutputLines(cnts_cmd, per_cpu, CountSamplesByCPU, cpu_time_ranges)
515 for cpu_time_range in cpu_time_ranges:
552 for cpu_time_range in cpu_time_ranges:
574 ProcessCommandOutputLines(times_cmd, per_cpu, CalcTimeRangesByCPU, cpu_time_ranges, max_time)
576 for cpu_time_range in cpu_time_ranges:
580 return [cpu_time_ranges[cpu].time_ranges for cpu in cpus]