-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi,
Recently weston has got weston-debug application which can piggy back on the protocol as well. It can be invoked using weston-debug proto. It supports displaying multiple clients and has a slight different format WAYLAND_DEBUG=1, but I think would be nice to get pretty formatting and filtering support.
I guess would be nice to do weston-debug proto | ./main.py [options]
Example of weston-debug proto dump with multiple clients.
[2018-12-27 18:55:57.228][proto] client 0x555ed56d3970 rq wl_surface@9.commit()
[2018-12-27 18:55:57.228][proto] client 0x555ed56d3970 ev wl_buffer@20.release()
[2018-12-27 18:55:57.228][proto] client 0x555ed56d3970 rq wl_surface@9.set_opaque_region(nil)
[2018-12-27 18:55:57.243][proto] client 0x555ed56c8620 ev wl_callback@16.done(31418518)
[2018-12-27 18:55:57.243][proto] client 0x555ed56c8620 ev wl_display@1.delete_id(16)
[2018-12-27 18:55:57.243][proto] client 0x555ed56d3970 ev wl_callback@16.done(31418518)
[2018-12-27 18:55:57.243][proto] client 0x555ed56d3970 ev wl_display@1.delete_id(16)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq wl_surface@9.frame(new id wl_callback@16)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq wl_surface@9.attach(wl_buffer@19, 0, 0)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq wl_surface@9.damage_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq wl_surface@9.commit()
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 ev wl_buffer@18.release()
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq wl_surface@9.frame(new id wl_callback@16)
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq wl_surface@9.attach(wl_buffer@19, 0, 0)
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq wl_surface@9.damage_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq wl_surface@9.commit()
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 ev wl_buffer@18.release()
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq wl_surface@9.set_opaque_region(nil)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq wl_surface@9.set_opaque_region(nil)
[2018-12-27 18:55:57.260][proto] client 0x555ed56c8620 ev wl_callback@16.done(31418535)
[2018-12-27 18:55:57.260][proto] client 0x555ed56c8620 ev wl_display@1.delete_id(16)
[2018-12-27 18:55:57.260][proto] client 0x555ed56d3970 ev wl_callback@16.done(31418535)
[2018-12-27 18:55:57.260][proto] client 0x555ed56d3970 ev wl_display@1.delete_id(16)
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq wl_surface@9.frame(new id wl_callback@16)
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq wl_surface@9.attach(wl_buffer@20, 0, 0)
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq wl_surface@9.damage_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq wl_surface@9.commit()
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 ev wl_buffer@19.release()
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq wl_surface@9.frame(new id wl_callback@16)
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq wl_surface@9.attach(wl_buffer@20, 0, 0)
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq wl_surface@9.damage_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq wl_surface@9.commit()
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 ev wl_buffer@19.release()
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq wl_surface@9.set_opaque_region(nil)
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq wl_surface@9.set_opaque_region(nil)
[2018-12-27 18:55:57.276][proto] client 0x555ed56c8620 ev wl_callback@16.done(31418552)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 ev wl_display@1.delete_id(16)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 ev wl_callback@16.done(31418552)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 ev wl_display@1.delete_id(16)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq wl_surface@9.frame(new id wl_callback@16)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq wl_surface@9.attach(wl_buffer@18, 0, 0)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq wl_surface@9.damage_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq wl_surface@9.commit()
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 ev wl_buffer@20.release()
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq wl_surface@9.set_opaque_region(nil)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 rq wl_surface@9.frame(new id wl_callback@16)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 rq wl_surface@9.attach(wl_buffer@18, 0, 0)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 rq wl_surface@9.damage_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 rq wl_surface@9.commit()
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 ev wl_buffer@20.release()
[2018-12-27 18:55:57.278][proto] client 0x555ed56c8620 rq wl_surface@9.set_opaque_region(nil)