Add SDK support for device memory inspection - #3184
Open
floitsch wants to merge 3 commits into
Open
Conversation
floitsch
force-pushed
the
device-inspector-sdk-support
branch
from
August 26, 2026 13:55
16df2d7 to
9d6c183
Compare
Keep the terminal UART dump in a dedicated device-memory source file. Add optional VM-state transition checkpoints and allocator tags for GC metadata and Bluetooth memory.
floitsch
force-pushed
the
device-inspector-sdk-support
branch
from
August 28, 2026 16:04
9d6c183 to
6a89a8a
Compare
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This extracts the SDK/runtime portion of the device-memory inspector work so the required SDK surface can be reviewed independently of the tool itself.
Included
TOIT_VM_STATE_CHECKPOINTS)Deliberately excluded
The last item should return as generic ELF/DWARF and envelope metadata support rather than make the SDK build import the inspector package.
This is 28 files, 1,357 insertions, and 44 deletions. The low-level ESP32 dump is isolated in
device_memory_dump_esp32.cc;os_esp32.ccgains only three allocation-accounting lines. The changes are split into snapshot-metadata and ESP32-runtime commits.RISC-V allocation tagging depends on #3183, which is intentionally a separate PR and can be merged independently.
Validation
toitppresentation test passedos_esp32.cctranslation units cross-compiled successfullygit diff --checkpassed