mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-03 09:01:42 -05:00
debug: Print debug message when client wakes up
This helps spot and remove extraneous round trips and context switches.
This commit is contained in:
parent
65fe6fc418
commit
1ac009473b
1 changed files with 5 additions and 0 deletions
|
|
@ -450,6 +450,11 @@ wl_display_iterate(struct wl_display *display, uint32_t mask)
|
||||||
}
|
}
|
||||||
|
|
||||||
len = wl_connection_data(display->connection, 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) {
|
while (len > 0) {
|
||||||
if (len < sizeof p)
|
if (len < sizeof p)
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue