summaryrefslogtreecommitdiff
path: root/bin/analyze-archive.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-12-10 08:22:32 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-12-10 08:22:32 +0100
commit3d817963b3f76211714f421f6d94445ac3e32e57 (patch)
tree972baa76d2c9dfeaeed1bd61c8c13fb720379a27 /bin/analyze-archive.py
parentd285be422c90851019a31bfe6c28aed3f3eb55fb (diff)
make analyze-archive --export work without --hwmodel
Diffstat (limited to 'bin/analyze-archive.py')
-rwxr-xr-xbin/analyze-archive.py5
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'])