Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pidcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def allocate_color(tag):
PID_DEATH = re.compile(r'^Process ([a-zA-Z0-9._:]+) \(pid (\d+)\) has died.?$')
LOG_LINE = re.compile(r'^([A-Z])/(.+?)\( *(\d+)\): (.*?)$')
BUG_LINE = re.compile(r'.*nativeGetEnabledTags.*')
BUG_LINE2 = re.compile(r'.*glUtilsParamSize.*')
BUG_LINE3 = re.compile(r'.*glSizeof.*')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can collapse these to a single regex '.*(glUtilsParamSize|glSizeof|nativeGetEnabledTags).*'.

BACKTRACE_LINE = re.compile(r'^#(.*?)pc\s(.*?)$')

base_adb_command = ['adb']
Expand Down Expand Up @@ -266,6 +268,12 @@ def tag_in_tags_regex(tag, tags):
bug_line = BUG_LINE.match(line)
if bug_line is not None:
continue
bug_line2 = BUG_LINE2.match(line)
if bug_line2 is not None:
continue
bug_line3 = BUG_LINE3.match(line)
if bug_line3 is not None:
continue

log_line = LOG_LINE.match(line)
if log_line is None:
Expand Down