diff --git a/external/devlib/devlib/target.py b/external/devlib/devlib/target.py index 4eeeb5c9565a1a3a739e99719db3bdcc460df580..811fc3b6e2cc2801204ce74c3524b910733aa6c1 100644 --- a/external/devlib/devlib/target.py +++ b/external/devlib/devlib/target.py @@ -1754,6 +1754,11 @@ class AndroidTarget(Target): def external_storage(self): return self.execute('echo $EXTERNAL_STORAGE').strip() + @property + @memoized + def external_storage_app_dir(self): + return self.path.join(self.external_storage, 'Android', 'data') + @property @memoized def screen_resolution(self): diff --git a/external/workload-automation/requirements.txt b/external/workload-automation/requirements.txt index 7ab2755b3bd346d37bd18fb3619045282731a485..429a7fb493fab08d678602bd7296c1acb89167a6 100644 --- a/external/workload-automation/requirements.txt +++ b/external/workload-automation/requirements.txt @@ -21,7 +21,7 @@ pyserial==3.5 python-dateutil==2.8.2 pytz==2023.3 PyYAML==6.0 -requests==2.29.0 +requests==2.31.0 scp==0.14.5 six==1.16.0 tzdata==2023.3 diff --git a/external/workload-automation/wa/instruments/perf.py b/external/workload-automation/wa/instruments/perf.py index 49b23bfea015d67527dc4d7e5d71cf0006eeb40b..c7a3d87ccef9cde5ab6c2dc8ccb6e26e59422c53 100644 --- a/external/workload-automation/wa/instruments/perf.py +++ b/external/workload-automation/wa/instruments/perf.py @@ -259,7 +259,9 @@ class PerfInstrument(Instrument): line_num = 0 for row in readCSV: if 'Performance counter statistics' not in row and 'Total test time' not in row: - classifiers = {'scaled from(%)': row[len(row) - 2].replace('(', '').replace(')', '').replace('%', '')} + classifiers = {} + if '%' in row: + classifiers['scaled from(%)'] = row[len(row) - 2].replace('(', '').replace(')', '').replace('%', '') context.add_metric('{}_{}'.format(label, row[1]), row[0], 'count', classifiers=classifiers) line_num += 1 @@ -276,10 +278,12 @@ class PerfInstrument(Instrument): tmp_line = line.strip() count, metric = tmp_line.split(' ')[0], tmp_line.split(' ')[2] count = float(count) if "." in count else int(count.replace(',', '')) - scaled_percentage = line.split('(')[1].strip().replace(')', '').replace('%', '') - scaled_percentage = int(scaled_percentage) + classifiers = {} + if '%' in line: + scaled_percentage = line.split('(')[1].strip().replace(')', '').replace('%', '') + classifiers['scaled from(%)'] = int(scaled_percentage) metric = '{}_{}'.format(label, metric) - context.add_metric(metric, count, units, classifiers={'scaled from(%)': scaled_percentage}) + context.add_metric(metric, count, units, classifiers=classifiers) def _process_simpleperf_record_output(self, context): for host_file in os.listdir(self.outdir):