Skip to content

Commit 5ec225e

Browse files
committed
scale-test: Pass -fine-grained-timers
Also, if all the stats are zero, raise an error instead of silently succeeding.
1 parent 5025964 commit 5ec225e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/scale-test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def run_once_with_primary(args, ast, rng, primary_idx):
149149
[line.split() for line in open(os.path.join(d, trace))]
150150
if len(fields) == 2}
151151
else:
152+
command += ["-fine-grained-timers"]
153+
152154
if args.debug:
153155
command = ["lldb", "--"] + command
154156
stats = "stats.json"
@@ -633,6 +635,9 @@ def report(args, rng, runs):
633635
rows = []
634636
for k in keys:
635637
vals = [r[k] for r in runs]
638+
if all(v == 0 for v in vals):
639+
print("Missing data")
640+
return True
636641
bounded = [max(v, 1) for v in vals]
637642
one_fit = False
638643
perfect_fit = False

0 commit comments

Comments
 (0)