/external/ltp/testcases/kernel/controllers/cpuctl_fj/ |
D | run_cpuctl_test_fj.sh | 596 cpu_usage=$(get_cpu_usage $pid) 597 echo "pid $pid cpu_usage $cpu_usage" 600 expr 96 \< "$cpu_usage" \& "$cpu_usage" \< 103 > /dev/null 2>&1 || return 1 612 cpu_usage=$(get_cpu_usage $pid) 613 echo "pid $pid cpu_usage $cpu_usage" 616 expr 96 \< "$cpu_usage" \& "$cpu_usage" \< 103 > /dev/null 2>&1 || return 1 639 cpu_usage=$(get_cpu_usage $pid) 640 echo "pid $pid cpu_usage $cpu_usage" 641 expr 44 \< "$cpu_usage" \& "$cpu_usage" \< 56 > /dev/null 2>&1 672 cpu_usage=$(get_cpu_usage $pid) [all …]
|
/external/autotest/client/site_tests/desktopui_SonicExtension/ |
D | test_utils.py | 265 cpu_usage = sorted(cpu_dict.values()) 267 '%.2f' % cpu_usage[int(len(cpu_usage) * 10.0 / 100.0)]) 269 '%.2f' % cpu_usage[int(len(cpu_usage) * 90.0 / 100.0)]) 270 cpu_bound['average'] = '%.2f' % (sum(cpu_usage) / float(len(cpu_usage))) 282 cpu_usage = {} 287 cpu_usage[current_time] = self._get_avg_cpu_usage( 290 return cpu_usage
|
D | desktopui_SonicExtension.py | 141 cpu_usage = self._test_utils.cpu_usage_interval( 148 cpu_bound = self._test_utils.compute_cpu_utilization(cpu_usage) 156 json.dump(cpu_usage, open(cpu_json_file, 'wb'))
|
/external/ltp/testcases/kernel/controllers/cpuctl/ |
D | cpuctl_def_task01.c | 100 struct rusage cpu_usage; in main() local 196 getrusage(0, &cpu_usage); in main() 198 total_cpu_time = (cpu_usage.ru_utime.tv_sec + in main() 199 cpu_usage.ru_utime.tv_usec * 1e-6 + in main() 200 cpu_usage.ru_stime.tv_sec + in main() 201 cpu_usage.ru_stime.tv_usec * 1e-6); in main()
|
D | cpuctl_def_task04.c | 100 struct rusage cpu_usage; in main() local 213 getrusage(0, &cpu_usage); in main() 215 total_cpu_time = (cpu_usage.ru_utime.tv_sec + in main() 216 cpu_usage.ru_utime.tv_usec * 1e-6 + in main() 217 cpu_usage.ru_stime.tv_sec + in main() 218 cpu_usage.ru_stime.tv_usec * 1e-6); in main()
|
D | cpuctl_def_task03.c | 98 struct rusage cpu_usage; in main() local 203 getrusage(0, &cpu_usage); in main() 205 total_cpu_time = (cpu_usage.ru_utime.tv_sec + in main() 206 cpu_usage.ru_utime.tv_usec * 1e-6 + in main() 207 cpu_usage.ru_stime.tv_sec + in main() 208 cpu_usage.ru_stime.tv_usec * 1e-6); in main()
|
D | cpuctl_test03.c | 100 struct rusage cpu_usage; in main() local 200 getrusage(0, &cpu_usage); in main() 201 total_cpu_time = (cpu_usage.ru_utime.tv_sec + cpu_usage.ru_utime.tv_usec * 1e-6 + /* user time */ in main() 202 cpu_usage.ru_stime.tv_sec + cpu_usage.ru_stime.tv_usec * 1e-6); /* system time */ in main()
|
D | cpuctl_def_task02.c | 102 struct rusage cpu_usage; in main() local 208 getrusage(0, &cpu_usage); in main() 210 total_cpu_time = (cpu_usage.ru_utime.tv_sec + in main() 211 cpu_usage.ru_utime.tv_usec * 1e-6 + in main() 212 cpu_usage.ru_stime.tv_sec + in main() 213 cpu_usage.ru_stime.tv_usec * 1e-6); in main()
|
D | cpuctl_test04.c | 100 struct rusage cpu_usage; in main() local 211 getrusage(0, &cpu_usage); in main() 212 total_cpu_time = (cpu_usage.ru_utime.tv_sec + cpu_usage.ru_utime.tv_usec * 1e-6 + /* user time */ in main() 213 cpu_usage.ru_stime.tv_sec + cpu_usage.ru_stime.tv_usec * 1e-6); /* system time */ in main()
|
D | cpuctl_test01.c | 100 struct rusage cpu_usage; in main() local 193 getrusage(0, &cpu_usage); in main() 194 total_cpu_time = (cpu_usage.ru_utime.tv_sec + cpu_usage.ru_utime.tv_usec * 1e-6 + /*user */ in main() 195 cpu_usage.ru_stime.tv_sec + cpu_usage.ru_stime.tv_usec * 1e-6); /*sys */ in main()
|
D | cpuctl_test02.c | 104 struct rusage cpu_usage; in main() local 204 getrusage(0, &cpu_usage); in main() 205 total_cpu_time = (cpu_usage.ru_utime.tv_sec + cpu_usage.ru_utime.tv_usec * 1e-6 + /* user time */ in main() 206 cpu_usage.ru_stime.tv_sec + cpu_usage.ru_stime.tv_usec * 1e-6); /* system time */ in main()
|
/external/autotest/server/site_tests/enterprise_LongevityTrackerServer/ |
D | enterprise_LongevityTrackerServer.py | 318 cpu_usage = '%.3f' % self._get_cpu_usage() 323 perf_values['cpu'].append(cpu_usage) 329 perf_writer.writerow([time_stamp, cpu_usage, mem_usage, max_temp]) 331 time_stamp, cpu_usage, mem_usage, max_temp)
|
/external/autotest/client/site_tests/longevity_Tracker/ |
D | longevity_Tracker.py | 142 cpu_usage = '%.3f' % self._get_cpu_usage() 147 perf_values['cpu'].append(cpu_usage) 153 perf_writer.writerow([time_stamp, cpu_usage, mem_usage, max_temp]) 155 time_stamp, cpu_usage, mem_usage, max_temp)
|
/external/autotest/server/site_tests/enterprise_CFM_Perf/ |
D | enterprise_CFM_Perf.py | 131 def upload_perf_data(self, cpu_usage, memory_usage, temperature): argument 138 avg_cpu_usage = sum(cpu_usage)/len(cpu_usage) 142 peak_cpu_usage = max(cpu_usage)
|
/external/webrtc/webrtc/examples/objc/AppRTCDemo/common/ |
D | ARDUtilities.m | 120 100.f * (float)thread_info_data.cpu_usage / TH_USAGE_SCALE;
|