summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-11-18 12:16:56 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2019-11-18 12:16:56 +0100
commit7c7e4b650c00e8a69da16b12ab301bcbcf01b1a8 (patch)
tree138745f82d79e0ec61499e8504691b734d561dbc /bin
parentcd57ef9d7817529c86dfa798ce7350c8d4c21038 (diff)
EnergyTraceLog: Finish parser. model analysis is working.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py19
1 files changed, 12 insertions, 7 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index 99b3012..ee6b1d8 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -325,13 +325,18 @@ if __name__ == '__main__':
model.stats.generic_param_dependence_ratio(trans, 'power')))
except KeyError:
pass
- print('{:10s}: {:.0f} / {:.0f} / {:.0f} pJ ({:.2f} / {:.2f} / {:.2f})'.format(
- trans, static_model(trans, 'energy'),
- static_model(trans, 'rel_energy_prev'),
- static_model(trans, 'rel_energy_next'),
- model.stats.generic_param_dependence_ratio(trans, 'energy'),
- model.stats.generic_param_dependence_ratio(trans, 'rel_energy_prev'),
- model.stats.generic_param_dependence_ratio(trans, 'rel_energy_next')))
+ try:
+ print('{:10s}: {:.0f} / {:.0f} / {:.0f} pJ ({:.2f} / {:.2f} / {:.2f})'.format(
+ trans, static_model(trans, 'energy'),
+ static_model(trans, 'rel_energy_prev'),
+ static_model(trans, 'rel_energy_next'),
+ model.stats.generic_param_dependence_ratio(trans, 'energy'),
+ model.stats.generic_param_dependence_ratio(trans, 'rel_energy_prev'),
+ model.stats.generic_param_dependence_ratio(trans, 'rel_energy_next')))
+ except KeyError:
+ print('{:10s}: {:.0f} pJ ({:.2f})'.format(
+ trans, static_model(trans, 'energy'),
+ model.stats.generic_param_dependence_ratio(trans, 'energy')))
print('{:10s}: {:.0f} µs'.format(trans, static_model(trans, 'duration')))
if xv_method == 'montecarlo':