Skip to content

Support easy ways to scrape and search lines from logcat - #1024

Open
xpconanfan wants to merge 1 commit into
masterfrom
add-logcat-search-and-wait
Open

Support easy ways to scrape and search lines from logcat#1024
xpconanfan wants to merge 1 commit into
masterfrom
add-logcat-search-and-wait

Conversation

@xpconanfan

Copy link
Copy Markdown
Collaborator

adds built-in utilities to ad.services.logcat to make scraping,filtering, and waiting for logcat lines simple and direct.

@xpconanfan xpconanfan added this to the Mobly Release 1.14 milestone Aug 9, 2026
@xpconanfan xpconanfan self-assigned this Aug 9, 2026
@xpconanfan
xpconanfan force-pushed the add-logcat-search-and-wait branch from 686ee72 to 6d674b7 Compare August 9, 2026 19:23
@xpconanfan
xpconanfan requested a review from mhaoli August 9, 2026 20:40
@xpconanfan
xpconanfan force-pushed the add-logcat-search-and-wait branch 7 times, most recently from 792dc0c to 6aceac5 Compare August 9, 2026 21:34
@xpconanfan
xpconanfan removed the request for review from mhaoli August 9, 2026 21:36
@xpconanfan
xpconanfan force-pushed the add-logcat-search-and-wait branch 14 times, most recently from 64bc983 to fac9572 Compare August 10, 2026 00:37
…gcat service

- Optimize tail() method with reverse block reading (64KB chunks) to eliminate full file scan and prevent memory spikes on multi-GB files.
- Bound LogcatListenerContext with a configurable circular event buffer (collections.deque(maxlen=1000)) to prevent memory leaks during long-running streaming.
- Advance wait_for byte offset directly from iteration end offsets without re-encoding string lines.
- Maintain 100% test pass rate across the Mobly test suite.

ORIGINAL_AUTHOR=angli
@xpconanfan
xpconanfan force-pushed the add-logcat-search-and-wait branch from fac9572 to 08324eb Compare August 10, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant