From: Daniel Elstner Date: Mon, 31 Aug 2015 01:23:13 +0000 (+0200) Subject: session: Add poll debug spew X-Git-Tag: libsigrok-0.4.0~352 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b5887bd0c308d78a151d3d3ff44d1f5ef28a8c4d;p=libsigrok.git session: Add poll debug spew --- diff --git a/src/session.c b/src/session.c index aaeda1cc..e73383b9 100644 --- a/src/session.c +++ b/src/session.c @@ -458,6 +458,10 @@ static int sr_session_iteration(struct sr_session *session) } #endif stop_time = g_get_monotonic_time(); + + sr_spew("%s: poll %d ms timeout, %g ms elapsed, %d events", + __func__, timeout_ms, 0.001 * (stop_time - start_time), ret); + triggered = FALSE; stopped = FALSE;