sahiljagtap's picture
Drums launch benchmarks reproduction + paired Drums/Prime/E2B re-run (scrubbed)
4ef198a
Raw History Blame Contribute Delete
745 Bytes
import json,sys
for l in open(sys.argv[1]):
r=json.loads(l)
if r["kind"]=="fork":
q=r["quiescence"] or {}
att=[(a.get("wait_s"),a.get("dump_s"),a.get("dump_check_s"),a.get("source_check_after_s"),a.get("rejected",{}).get("why")) for a in q.get("attempts",[])]
print("fork",r["i"],r["wall_s"],r["server"],att,[ (c["timings"] or {}).get("total") for c in r["children"]],[v["valid"] for v in r["validity"]], r["error"])
elif r["kind"]=="reset": print("reset",r["j"],r["wall_s"],r["valid"],{k:r["timings"].get(k) for k in ("criu_clock","task_setup","total","ready")})
elif r["kind"]=="create": print("create",r["s"],r["timings"].get("total"))
elif r["kind"]=="parent_ready": print(str(r["procs"])[-400:])