Skip to content

Print command stream histogram before crashing#9745

Draft
bejado wants to merge 3 commits intomainfrom
bjd/command-stream-debugging
Draft

Print command stream histogram before crashing#9745
bejado wants to merge 3 commits intomainfrom
bjd/command-stream-debugging

Conversation

@bejado
Copy link
Member

@bejado bejado commented Feb 24, 2026

Adds a command stream histogram that is printed immediately before the engine crashes due to a command buffer overflow. To do this without increasing the size of the command stream buffer, we track each command's mExecute pointer and map it to a CommandInfo struct. This enables iterating through the buffer after the fact to tally and log command statistics.

@bejado bejado requested a review from pixelflinger February 24, 2026 18:06
@bejado
Copy link
Member Author

bejado commented Feb 24, 2026

@pixelflinger let me know if you're okay with this approach. I don't love the idea of passing a std::function to flush(), so open to suggestions.

@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants