Repository navigation
workflow: add the HEAP_PROFILE_TRACE well-known command - #260
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mattklein123
marked this pull request as ready for review
November 19, 2026 17:15
ArielDemarco
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First PR of the stack that ships a heap profile as a built-in SDK command, the same way
stack_sampling_traceshipped (api → shared-core → monorepo / capture-sdk).Adds
WellKnownCommandType.HEAP_PROFILE_TRACE = 4, keyheap_profile_trace: a Perfetto heap profile of the app process through Android'sProfilingManager. Android 15+ only, config version 51.duration_msbuffer_size_kbsampling_interval_bytestrack_java_allocationsThe SDK passes each value to the platform, which clamps it to its own bounds.
Why these defaults:
ProfilingManagerdoesn't block the client. When the buffer overruns, the client disconnects and the truncated trace is still reported as a success. In our runs on an API 36 emulator and a Pixel 10, 16 KiB overran within 2 s; 64 KiB, the platform maximum, ran the full 5 s.track_java_allocations = falseswitches to the native heap.🤖 Generated with Claude Code