diff options
Diffstat (limited to 'bin/analyze-archive.py')
-rwxr-xr-x | bin/analyze-archive.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 8470ab6..a70b23b 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -74,7 +74,7 @@ Options: Load DFA hardware model from JSON or YAML --export-energymodel=<model.json> - Export energy model. Requires --hwmodel. + Export energy model. Works out of the box for v1 and v2 logfiles. Requires --hwmodel for v0 logfiles. """ import getopt @@ -283,6 +283,9 @@ if __name__ == '__main__': print('No valid data available. Abort.') sys.exit(2) + if pta is None and raw_data.pta is not None: + pta = PTA.from_json(raw_data.pta) + by_name, parameters, arg_count = pta_trace_to_aggregate(preprocessed_data, ignored_trace_indexes) filter_aggregate_by_param(by_name, parameters, opts['filter-param']) |