Skip to content

Commit d35cf26

Browse files
committed
show raw_tvd
1 parent fafa4b7 commit d35cf26

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Tools/inspection/oracle_external_inspection.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def result_metrics(result, reference_obs, is_reference, op):
208208
skip_tvd = is_reference or op != "get_stack_trace"
209209
n_live = sum(result["observations"].values())
210210
raw_tvd = None if skip_tvd else tvd(result["observations"], reference_obs)
211+
# IID heuristic, not a calibrated noise bound.
211212
floor = None if skip_tvd else tvd_floor(reference_obs, n_live)
212213
return {
213214
"samples": result["samples"],
@@ -279,6 +280,9 @@ def print_results(
279280
"impossible_pct": fmt_stat(
280281
[item["impossible_percent"] for item in metrics], 2
281282
),
283+
"raw_tvd": "ref"
284+
if mode == reference_mode
285+
else fmt_stat([item["raw_tvd"] for item in metrics], 3),
282286
"tvd_excess": "ref"
283287
if mode == reference_mode
284288
else fmt_stat([item["tvd_excess"] for item in metrics], 3),
@@ -303,6 +307,7 @@ def print_results(
303307
]
304308
if is_sync:
305309
columns += [
310+
("raw_tvd", ">12", "raw_tvd"),
306311
("tvd_excess", ">12", "tvd_excess"),
307312
("tvd_floor", ">10", "tvd_floor"),
308313
]

0 commit comments

Comments
 (0)