Support for weston-debug proto debug scope as read end of a pipe #2
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
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 [email protected]()
[2018-12-27 18:55:57.228][proto] client 0x555ed56d3970 ev [email protected]()
[2018-12-27 18:55:57.228][proto] client 0x555ed56d3970 rq [email protected]_opaque_region(nil)
[2018-12-27 18:55:57.243][proto] client 0x555ed56c8620 ev [email protected](31418518)
[2018-12-27 18:55:57.243][proto] client 0x555ed56c8620 ev [email protected]_id(16)
[2018-12-27 18:55:57.243][proto] client 0x555ed56d3970 ev [email protected](31418518)
[2018-12-27 18:55:57.243][proto] client 0x555ed56d3970 ev [email protected]_id(16)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq [email protected](new id wl_callback@16)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq [email protected](wl_buffer@19, 0, 0)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq [email protected]_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq [email protected]()
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 ev [email protected]()
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq [email protected](new id wl_callback@16)
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq [email protected](wl_buffer@19, 0, 0)
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq [email protected]_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq [email protected]()
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 ev [email protected]()
[2018-12-27 18:55:57.244][proto] client 0x555ed56c8620 rq [email protected]_opaque_region(nil)
[2018-12-27 18:55:57.244][proto] client 0x555ed56d3970 rq [email protected]_opaque_region(nil)
[2018-12-27 18:55:57.260][proto] client 0x555ed56c8620 ev [email protected](31418535)
[2018-12-27 18:55:57.260][proto] client 0x555ed56c8620 ev [email protected]_id(16)
[2018-12-27 18:55:57.260][proto] client 0x555ed56d3970 ev [email protected](31418535)
[2018-12-27 18:55:57.260][proto] client 0x555ed56d3970 ev [email protected]_id(16)
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq [email protected](new id wl_callback@16)
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq [email protected](wl_buffer@20, 0, 0)
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq [email protected]_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq [email protected]()
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 ev [email protected]()
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq [email protected](new id wl_callback@16)
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq [email protected](wl_buffer@20, 0, 0)
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq [email protected]_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq [email protected]()
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 ev [email protected]()
[2018-12-27 18:55:57.261][proto] client 0x555ed56d3970 rq [email protected]_opaque_region(nil)
[2018-12-27 18:55:57.261][proto] client 0x555ed56c8620 rq [email protected]_opaque_region(nil)
[2018-12-27 18:55:57.276][proto] client 0x555ed56c8620 ev [email protected](31418552)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 ev [email protected]_id(16)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 ev [email protected](31418552)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 ev [email protected]_id(16)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq [email protected](new id wl_callback@16)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq [email protected](wl_buffer@18, 0, 0)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq [email protected]_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq [email protected]()
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 ev [email protected]()
[2018-12-27 18:55:57.277][proto] client 0x555ed56d3970 rq [email protected]_opaque_region(nil)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 rq [email protected](new id wl_callback@16)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 rq [email protected](wl_buffer@18, 0, 0)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 rq [email protected]_buffer(61, 62, 127, 127)
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 rq [email protected]()
[2018-12-27 18:55:57.277][proto] client 0x555ed56c8620 ev [email protected]()
[2018-12-27 18:55:57.278][proto] client 0x555ed56c8620 rq [email protected]_opaque_region(nil)
The text was updated successfully, but these errors were encountered: