tool/metrics: handle metric without deviations

This commit is contained in:
Matthias Ringwald 2020-01-13 22:16:04 +01:00
parent 64246e5e2a
commit 5dde773e0b

View File

@ -70,6 +70,10 @@ def analyze_folders(btstack_root, folders):
# "Nesting Level","VOCF","Number of functions which call this function",
fields = [ 'file','function','GOTO','RETURN','_','STMT' ,'_','CCN','PATH','CALLS','PARAM','LEVEL','_','_','_']
# init deviations
for key in fields:
metrics[key + '_DEVIATIONS'] = 0
# for now, just read the file
with open("metrics.tsv") as fd:
rd = csv.reader(fd, delimiter="\t")