]> sigrok.org Git - libsigrok.git/commitdiff
session: Add poll debug spew
authorDaniel Elstner <redacted>
Mon, 31 Aug 2015 01:23:13 +0000 (03:23 +0200)
committerDaniel Elstner <redacted>
Thu, 3 Sep 2015 17:37:09 +0000 (19:37 +0200)
src/session.c

index aaeda1cc09ed199eebd59dd79078b6e0e6ef9bcf..e73383b9cc6a572ce9c07a7d6c4f187ec2275edf 100644 (file)
@@ -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;