From 06c250500c731fdc1c252ec3ed17b9c15e7575c0 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 21 Mar 2023 10:37:45 +0100 Subject: [PATCH] Warn when median burst time exceeds 100 ns --- src/emu/ovni/event.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emu/ovni/event.c b/src/emu/ovni/event.c index b8df1ea..204b347 100644 --- a/src/emu/ovni/event.c +++ b/src/emu/ovni/event.c @@ -397,6 +397,9 @@ pre_burst(struct emu *emu) info("%s burst stats: median/avg/max = %3.0f/%3.0f/%3.0f ns\n", emu->loom->id, median, avg, maxdelta); + if (median > 100) + warn("large median burst time of %.0f ns, expect overhead", median); + th->nbursts = 0; return 0;