diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-02-06 08:52:07 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-02-06 08:52:07 +0100 |
commit | 466895124cbf4bd1eb1b8a61ab641904db258501 (patch) | |
tree | 4992053a9ff6874c9de0db0fae78f9b8b7220de3 /bin | |
parent | 4ce047e96b74c58a44b3f80320a8c03f43bc8fea (diff) |
calculate parameter dependence
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-archive.py | 17 |
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) |