aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/compilation_stats_target.sh
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/compilation_stats_target.sh')
-rwxr-xr-xbenchmarks/compilation_stats_target.sh18
1 files changed, 7 insertions, 11 deletions
diff --git a/benchmarks/compilation_stats_target.sh b/benchmarks/compilation_stats_target.sh
index 6bef4795..4de1810e 100755
--- a/benchmarks/compilation_stats_target.sh
+++ b/benchmarks/compilation_stats_target.sh
@@ -76,16 +76,12 @@ usage() {
log I " --list-devices - List the devices supported by this script."
log I " --mode <all|32|64> - Get compile stats for the specified mode(s)."
log I " (default: all)"
- log I " --cpu <all|big|little|default> - CPU mode."
- log I " \"big\": Run with only big cores and pin their frequency"
- log I " \"little\": Run with only little cores and pin their"
- log I " frequency"
- log I " \"all\": With big.LITTLE devices:"
- log I " Run consecutively with only little cores enabled and"
- log I " pinned,"
- log I " and then with only big cores enabled and pinned."
- log I " For devices without big.LITTLE, all cores are enabled and"
- log I " pinned"
+ log I " --cpu <all|cluster_name|default> - CPU mode."
+ log I " \"cluster_name\": Run with only cores specified by"
+ log I " \`cluster_name\` and pin their frequency."
+ log I " \"all\": Run one cluster of cores at a time until all"
+ log I " clusters/cores have been run. Each cluster is run pinned to"
+ log I " a specific frequency to ensure consistency between tests."
log I " \"default\": Run with unaltered default CPU configuration"
log I " (no pinning)."
log I " (default: all)"
@@ -233,7 +229,7 @@ run_apks() {
# ${1}: bitness
run_all_apks() {
local -r bitness="${1}"
- local -r target_device=$(safe adb_shell getprop ro.product.device)
+ local -r target_device=$(retrieve_target_product_name)
local -r cpu="${options["cpu"]}"
local -r path_to_devices="${local_path}/../devices"
set_freq_and_run run_apks "${bitness}" "${cpu}" "${target_device}" "${path_to_devices}"