summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-02-06 08:52:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-02-06 08:52:07 +0100
commit466895124cbf4bd1eb1b8a61ab641904db258501 (patch)
tree4992053a9ff6874c9de0db0fae78f9b8b7220de3 /bin
parent4ce047e96b74c58a44b3f80320a8c03f43bc8fea (diff)
calculate parameter dependence
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)