File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
extension/benchmark/android/benchmark Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ phases:
105
105
echo "*.model tokenizer files found in /data/local/tmp/minibench/"
106
106
fi
107
107
108
+ - echo "Collect device state before running"
109
+ - |
110
+ adb -s $DEVICEFARM_DEVICE_UDID shell 'cat /sys/devices/system/cpu/cpu*/cpufreq/stats/time_in_state /sys/devices/system/cpu/cpu*/cpufreq/stats/trans_table' > $DEVICEFARM_LOG_DIR/state_before.txt
111
+
108
112
- echo "Run benchmark"
109
113
- |
110
114
adb -s $DEVICEFARM_DEVICE_UDID shell touch /data/local/tmp/result.etdump
@@ -128,7 +132,10 @@ phases:
128
132
adb -s $DEVICEFARM_DEVICE_UDID shell am start -W -n org.pytorch.minibench/.BenchmarkActivity \
129
133
--es "model_dir" "/data/local/tmp/minibench"
130
134
fi
131
-
135
+
136
+ - echo "Collect device state after running"
137
+ - |
138
+ adb -s $DEVICEFARM_DEVICE_UDID shell 'cat /sys/devices/system/cpu/cpu*/cpufreq/stats/time_in_state /sys/devices/system/cpu/cpu*/cpufreq/stats/trans_table' > $DEVICEFARM_LOG_DIR/state_after.txt
132
139
133
140
post_test:
134
141
commands:
You can’t perform that action at this time.
0 commit comments