summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-10-20 15:05:11 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-10-20 15:05:11 -0400
commit1ac009473bab32a304beb4f115fbae2514824a06 (patch)
treecde80a2882bf963c599425dd9b37710bf9bcc70e
parent65fe6fc41891157bce570cb6cc2411b6a8ba7b8a (diff)
debug: Print debug message when client wakes up
This helps spot and remove extraneous round trips and context switches.
-rw-r--r--src/wayland-client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c
index de84698..efb7fe6 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -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;