summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-09-09 08:00:09 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-09-09 08:00:09 +0200
commit454014918bd8be3225139f6bef4b97976a298479 (patch)
tree8821679ba0f3e548acc5f4acf9abd3cb763c013a /bin
parent1a7c8bdb477987eb6e0f6710e68148c4d46e01ab (diff)
optionally also analyze mean transition power
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index 8ced365..031bef5 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -253,6 +253,14 @@ if __name__ == '__main__':
param,
model.stats.param_dependence_ratio(state, 'power', param)))
for trans in model.transitions():
+ # Mean power is not a typical transition attribute, but may be present for debugging or analysis purposes
+ try:
+ print('{:10s}: {:.0f} µW ({:.2f})'.format(
+ trans,
+ static_model(trans, 'power'),
+ 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'),