From 0dbf26fcaa1fd2cf2a5f5fd6c8fe6ea1f4c917a6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 Mar 2019 15:08:35 +0100 Subject: data_parameters: Add (text|bss|data)_ser(des)?_delta --- lib/data_parameters.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'lib/data_parameters.py') 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): """ -- cgit v1.2.3