Commit 6f100f85 authored by Michael Sammler's avatar Michael Sammler
Browse files

correctly compute overhead

parent 94f15fa7
Pipeline #43923 passed with stage
in 18 minutes and 57 seconds
......@@ -308,10 +308,13 @@ for cat in stats:
# set to 0 if missing
prog["stats"]["annot"] = prog["stats"].get("annot", 0)
prog["stats"]["pure"] = prog["stats"].get("pure", 0)
prog["stats"]["annot_loop"] = prog["stats"].get("annot_loop", 0)
prog["stats"]["annot_type"] = prog["stats"].get("annot_type", 0)
prog["stats"]["rule"] = prog["stats"].get("rule", 0)
if prog["name"] == "Spinlock":
prog["stats"]["annot"] += 6
prog["stats"]["overhead"] = round((prog["stats"]["annot"] + prog["stats"]["pure"]) / prog["stats"]["LoC"], 1)
prog["stats"]["overhead"] = round((prog["stats"]["annot"] + prog['stats']['annot_loop'] + prog['stats']['annot_type'] + prog['stats']['rule'] + prog["stats"]["pure"]) / prog["stats"]["LoC"], 1)
for cat in stats:
for prog in cat["progs"]:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment