Lines Matching refs:process_type
35 for process_type in cpu_stats:
36 trace_name_for_process = '%s_%s' % (trace_name, process_type.lower())
37 cpu_percent = 100 * cpu_stats[process_type]
60 for process_type in cpu_stats:
61 assert process_type in start_cpu_stats, 'Mismatching process types'
63 if (not cpu_stats[process_type]) or (not start_cpu_stats[process_type]):
65 cpu_process_time = (cpu_stats[process_type]['CpuProcessTime'] -
66 start_cpu_stats[process_type]['CpuProcessTime'])
67 total_time = (cpu_stats[process_type]['TotalTime'] -
68 start_cpu_stats[process_type]['TotalTime'])
77 cpu_usage[process_type] = float(cpu_process_time) / total_time