diff options
author | Tibor Frank <tifrank@cisco.com> | 2017-11-07 14:34:25 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-11-07 15:29:21 +0100 |
commit | 2b8547bc50fd06ea936f096794b8c2a5e09c5f8b (patch) | |
tree | e11737b2b7a399761eb82af77005a854e29df0d8 /resources/tools/presentation/generator_tables.py | |
parent | 140cc148a75016164875804e6eb82d878f6b0ba9 (diff) |
PAL: Perf improvements - more data sources
Change-Id: I39c8c896f3fa3a7b6a87364e4b700810a9b5d9a6
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 920c30a4a8..afd8390c91 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -237,16 +237,17 @@ def table_performance_improvements(table, input_data): val = tmpl_item[int(args[0])] tbl_item.append({"data": val}) elif cmd == "data": - job = args[0] - operation = args[1] + jobs = args[0:-1] + operation = args[-1] data_lst = list() - for build in data[job]: - try: - data_lst.append(float(build[tmpl_item[0]]["throughput"] - ["value"])) - except (KeyError, TypeError): - # No data, ignore - continue + for job in jobs: + for build in data[job]: + try: + data_lst.append(float(build[tmpl_item[0]] + ["throughput"]["value"])) + except (KeyError, TypeError): + # No data, ignore + continue if data_lst: tbl_item.append({"data": (eval(operation)(data_lst)) / 1000000}) |