mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
tool/metrics: handle metric without deviations
This commit is contained in:
parent
64246e5e2a
commit
5dde773e0b
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user