MCPcopy Create free account
hub / github.com/FastLED/FastLED / display_tight_timing

Function display_tight_timing

ci/autoresearch/context.py:261–280  ·  view source on GitHub ↗

Display tight timing metrics from runSingleTest responses.

(result: dict[str, Any])

Source from the content-addressed store, hash-verified

259
260
261def display_tight_timing(result: dict[str, Any]) -> None:
262 """Display tight timing metrics from runSingleTest responses."""
263 metric = result.get("tightTiming")
264 if not isinstance(metric, dict):
265 return
266
267 if not metric.get("supported", False):
268 reason = metric.get("message", "unsupported")
269 print(f" Tight timing: unsupported ({reason})")
270 return
271
272 status = "PASS" if metric.get("passed", False) else "FAIL"
273 max_overhead = metric.get("max_overhead_us", "?")
274 max_allowed = metric.get("max_allowed_overhead_us", "?")
275 expected = metric.get("expected_wire_us", "?")
276 avg_total = metric.get("avg_total_us", "?")
277 print(
278 f" Tight timing: {status} max overhead {max_overhead}us "
279 f"(limit {max_allowed}us, wire {expected}us, avg total {avg_total}us)"
280 )
281
282
283def print_run_summary(ctx: RunContext) -> None:

Callers 1

_run_rpc_testsFunction · 0.90

Calls 2

printFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected