mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
scale-test: Pass -fine-grained-timers
Also, if all the stats are zero, raise an error instead of silently succeeding.
This commit is contained in:
@@ -149,6 +149,8 @@ def run_once_with_primary(args, ast, rng, primary_idx):
|
||||
[line.split() for line in open(os.path.join(d, trace))]
|
||||
if len(fields) == 2}
|
||||
else:
|
||||
command += ["-fine-grained-timers"]
|
||||
|
||||
if args.debug:
|
||||
command = ["lldb", "--"] + command
|
||||
stats = "stats.json"
|
||||
@@ -633,6 +635,9 @@ def report(args, rng, runs):
|
||||
rows = []
|
||||
for k in keys:
|
||||
vals = [r[k] for r in runs]
|
||||
if all(v == 0 for v in vals):
|
||||
print("Missing data")
|
||||
return True
|
||||
bounded = [max(v, 1) for v in vals]
|
||||
one_fit = False
|
||||
perfect_fit = False
|
||||
|
||||
Reference in New Issue
Block a user