debug: Print debug message when client wakes up

This helps spot and remove extraneous round trips and context switches.
This commit is contained in:
Kristian Høgsberg 2011-10-20 15:05:11 -04:00
parent 65fe6fc418
commit 1ac009473b

View file

@ -450,6 +450,11 @@ wl_display_iterate(struct wl_display *display, uint32_t mask)
}
len = wl_connection_data(display->connection, mask);
if (wl_debug && (mask & WL_DISPLAY_READABLE))
fprintf(stderr,
"[-----------] wakeup, read %d bytes\n", len);
while (len > 0) {
if (len < sizeof p)
break;