summaryrefslogtreecommitdiff
path: root/lib/data_parameters.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-25 15:08:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-25 15:08:35 +0100
commit0dbf26fcaa1fd2cf2a5f5fd6c8fe6ea1f4c917a6 (patch)
tree491fdaf270ae397bd1fca3b8e46c3fca48537332 /lib/data_parameters.py
parent83e437a9b18bd4b8f0d3843f08ef0c729015c5b2 (diff)
data_parameters: Add (text|bss|data)_ser(des)?_delta
Diffstat (limited to 'lib/data_parameters.py')
-rw-r--r--lib/data_parameters.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/data_parameters.py b/lib/data_parameters.py
index f82df62..6ea19a6 100644
--- a/lib/data_parameters.py
+++ b/lib/data_parameters.py
@@ -221,15 +221,20 @@ class Protolog:
except KeyError:
pass
try:
+ val['text_ser_delta'] = val['text_ser'] - val['text_nop']
val['text_serdes_delta'] = val['text_serdes'] - val['text_nop']
except KeyError:
pass
- #try:
- # val['text_ser'] = val['text_nopser'] - val['text_nop']
- # val['text_des'] = val['text_nopserdes'] - val['text_nopser'] # use with care, probably bogus
- # val['text_serdes'] = val['text_nopserdes'] - val['text_nop']
- #except KeyError:
- # pass
+ try:
+ val['bss_ser_delta'] = val['bss_ser'] - val['bss_nop']
+ val['bss_serdes_delta'] = val['bss_serdes'] - val['bss_nop']
+ except KeyError:
+ pass
+ try:
+ val['data_ser_delta'] = val['data_ser'] - val['data_nop']
+ val['data_serdes_delta'] = val['data_serdes'] - val['data_nop']
+ except KeyError:
+ pass
def add_datapoint(self, arch, lib, key, value, aggregate_label, data_label, getter):
"""