summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py17
1 files changed, 14 insertions, 3 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index cf3449a..e5f3783 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -13,12 +13,23 @@ if __name__ == '__main__':
print('--- simple static model ---')
static_model = model.get_static()
for state in model.states():
- print('{:10s}: {:.0f} µW'.format(state, static_model(state, 'power')))
+ print('{:10s}: {:.0f} µW ({:.2f})'.format(
+ state,
+ static_model(state, 'power'),
+ model.generic_param_dependence_ratio(state, 'power')))
+ for param in model.parameters():
+ print('{:10s} dependence on {:15s}: {:.2f}'.format(
+ '',
+ param,
+ model.param_dependence_ratio(state, 'power', param)))
for trans in model.transitions():
- print('{:10s}: {:.0f} / {:.0f} / {:.0f} pJ'.format(
+ 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')))
+ static_model(trans, 'rel_energy_next'),
+ model.generic_param_dependence_ratio(trans, 'energy'),
+ model.generic_param_dependence_ratio(trans, 'rel_energy_prev'),
+ model.generic_param_dependence_ratio(trans, 'rel_energy_next')))
print('{:10s}: {:.0f} µs'.format(trans, static_model(trans, 'duration')))
model.assess(static_model)