/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/ltp/testcases/kernel/controllers/cpuctl/ |
D | cpuctl_def_task01.c | 101 struct rusage cpu_usage; in main() local 195 getrusage(0, &cpu_usage); in main() 197 total_cpu_time = (cpu_usage.ru_utime.tv_sec + in main() 198 cpu_usage.ru_utime.tv_usec * 1e-6 + in main() 199 cpu_usage.ru_stime.tv_sec + in main() 200 cpu_usage.ru_stime.tv_usec * 1e-6); in main()
|
D | cpuctl_test01.c | 101 struct rusage cpu_usage; in main() local 190 getrusage(0, &cpu_usage); in main() 191 total_cpu_time = (cpu_usage.ru_utime.tv_sec + cpu_usage.ru_utime.tv_usec * 1e-6 + /*user */ in main() 192 cpu_usage.ru_stime.tv_sec + cpu_usage.ru_stime.tv_usec * 1e-6); /*sys */ in main()
|
D | cpuctl_def_task03.c | 99 struct rusage cpu_usage; in main() local 202 getrusage(0, &cpu_usage); in main() 204 total_cpu_time = (cpu_usage.ru_utime.tv_sec + in main() 205 cpu_usage.ru_utime.tv_usec * 1e-6 + in main() 206 cpu_usage.ru_stime.tv_sec + in main() 207 cpu_usage.ru_stime.tv_usec * 1e-6); in main()
|
D | cpuctl_def_task02.c | 103 struct rusage cpu_usage; in main() local 206 getrusage(0, &cpu_usage); in main() 208 total_cpu_time = (cpu_usage.ru_utime.tv_sec + in main() 209 cpu_usage.ru_utime.tv_usec * 1e-6 + in main() 210 cpu_usage.ru_stime.tv_sec + in main() 211 cpu_usage.ru_stime.tv_usec * 1e-6); in main()
|
D | cpuctl_test04.c | 101 struct rusage cpu_usage; in main() local 208 getrusage(0, &cpu_usage); in main() 209 total_cpu_time = (cpu_usage.ru_utime.tv_sec + cpu_usage.ru_utime.tv_usec * 1e-6 + /* user time */ in main() 210 cpu_usage.ru_stime.tv_sec + cpu_usage.ru_stime.tv_usec * 1e-6); /* system time */ in main()
|
D | cpuctl_def_task04.c | 101 struct rusage cpu_usage; in main() local 212 getrusage(0, &cpu_usage); in main() 214 total_cpu_time = (cpu_usage.ru_utime.tv_sec + in main() 215 cpu_usage.ru_utime.tv_usec * 1e-6 + in main() 216 cpu_usage.ru_stime.tv_sec + in main() 217 cpu_usage.ru_stime.tv_usec * 1e-6); in main()
|
D | cpuctl_test03.c | 101 struct rusage cpu_usage; in main() local 197 getrusage(0, &cpu_usage); in main() 198 total_cpu_time = (cpu_usage.ru_utime.tv_sec + cpu_usage.ru_utime.tv_usec * 1e-6 + /* user time */ in main() 199 cpu_usage.ru_stime.tv_sec + cpu_usage.ru_stime.tv_usec * 1e-6); /* system time */ in main()
|
D | cpuctl_test02.c | 105 struct rusage cpu_usage; in main() local 201 getrusage(0, &cpu_usage); in main() 202 total_cpu_time = (cpu_usage.ru_utime.tv_sec + cpu_usage.ru_utime.tv_usec * 1e-6 + /* user time */ in main() 203 cpu_usage.ru_stime.tv_sec + cpu_usage.ru_stime.tv_usec * 1e-6); /* system time */ in main()
|
/external/grpc-grpc/src/cpp/server/load_reporter/ |
D | load_reporter.h | 175 uint64_t cpu_usage; member 180 uint64_t errors, uint64_t cpu_usage, uint64_t cpu_limit) in LoadBalancingFeedbackRecord() 184 cpu_usage(cpu_usage), in LoadBalancingFeedbackRecord()
|
D | load_reporter.cc | 276 double cpu_usage = newest->cpu_usage - oldest->cpu_usage; in GenerateLoadBalancingFeedback() local 282 feedback.set_server_utilization(static_cast<float>(cpu_usage / cpu_limit)); in GenerateLoadBalancingFeedback()
|
/external/autotest/server/site_tests/enterprise_LongevityTrackerServer/ |
D | enterprise_LongevityTrackerServer.py | 183 cpu_usage = '%.3f' % enterprise_longevity_helper.get_cpu_usage( 191 perf_values['cpu'].append(float(cpu_usage)) 197 perf_writer.writerow([time_stamp, cpu_usage, mem_usage, max_temp]) 199 time_stamp, cpu_usage, mem_usage, max_temp)
|
/external/autotest/client/site_tests/longevity_Tracker/ |
D | longevity_Tracker.py | 141 cpu_usage = '%.3f' % self._get_cpu_usage() 146 perf_values['cpu'].append(cpu_usage) 152 perf_writer.writerow([time_stamp, cpu_usage, mem_usage, max_temp]) 154 time_stamp, cpu_usage, mem_usage, max_temp)
|
/external/autotest/client/site_tests/video_MediaRecorderPerf/ |
D | video_MediaRecorderPerf.py | 133 cpu_usage = self.compute_cpu_usage() 162 return (elapsed_time / mkv_listener.get_num_frames(), cpu_usage)
|
/external/webrtc/webrtc/examples/objc/AppRTCDemo/common/ |
D | ARDUtilities.m | 120 100.f * (float)thread_info_data.cpu_usage / TH_USAGE_SCALE;
|