Skip to content

Add Freeze Log debug toggle - #667

Open
Xnick417x wants to merge 1 commit into
WinNative-Emu:mainfrom
Xnick417x:freeze-log
Open

Add Freeze Log debug toggle#667
Xnick417x wants to merge 1 commit into
WinNative-Emu:mainfrom
Xnick417x:freeze-log

Conversation

@Xnick417x

Copy link
Copy Markdown
Collaborator

When the game stops presenting for 5 s, record what every guest thread is doing so a freeze can be diagnosed after the fact.

Each dump captures per-thread state from /proc (name, run state, wchan, current syscall), every executable mapping including anonymous JIT regions, and the kgsl GPU counters. Dumps repeat every 15 s while stalled, capped at six, and are written to logs/freeze_.log so the existing log export picks them up.

Writing to a file rather than logcat is deliberate: a guest process has several hundred mappings and logcat rate-limits and silently drops them.

Off by default; toggle lives in Settings > Debug.

When the game stops presenting for 5 s, record what every guest thread is
doing so a freeze can be diagnosed after the fact.

Each dump captures per-thread state from /proc (name, run state, wchan,
current syscall), every executable mapping including anonymous JIT regions,
and the kgsl GPU counters. Dumps repeat every 15 s while stalled, capped at
six, and are written to logs/freeze_<timestamp>.log so the existing log
export picks them up.

Writing to a file rather than logcat is deliberate: a guest process has
several hundred mappings and logcat rate-limits and silently drops them.

Off by default; toggle lives in Settings > Debug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant