Skip to content

Commit

Permalink
Optionally parse message queue in WAYLAND_DEBUG messages
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww committed Aug 26, 2024
1 parent 3f7c919 commit 73cc9a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backends/libwayland_debug_output/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ def __init__(self) -> None:
self.arg_re = re.compile(all_args_re)
timestamp_regex = r'\[\s*(?P<timestamp>\d+[\.,]\d+)\s*\]'
conn_re = r'( \<(?P<conn>\w+)\>)?'
queue_re = r'( {.*})?'
message_regex = r'(?P<type>\w+)[@#](?P<id>\d+)\.(?P<message>\w+)\((?P<args>.*)\)$'
self.out_msg_re = re.compile(timestamp_regex + conn_re + ' -> ' + message_regex)
self.in_msg_re = re.compile(timestamp_regex + conn_re + ' ' + message_regex)
self.out_msg_re = re.compile(timestamp_regex + queue_re + conn_re + ' -> ' + message_regex)
self.in_msg_re = re.compile(timestamp_regex + queue_re + conn_re + ' ' + message_regex)

@staticmethod
def lazy_get_instance() -> 'WlPatterns':
Expand Down

0 comments on commit 73cc9a9

Please sign in to comment.