Skip to content

Add Aperture memory profiling for VM and native execution - #12

Merged
bytetroll merged 3 commits into
masterfrom
codex/aperture-memory-profile
Oct 26, 2026
Merged

bytetroll merged 3 commits into
masterfrom
codex/aperture-memory-profile

Conversation

@bytetroll

@bytetroll bytetroll commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Aperture now records actual runtime allocations instead of returning placeholder snapshots. VM and native reports include allocation sites, allocated/freed/live/peak storage, resize activity, GC statistics, and explicit completion and coverage information. Captures finish before runtime teardown, and retained storage is not classified as a leak.

Adds aperture memory for source, NIL, and native programs, strict saved-report inspection, and VS Code commands for both execution routes. Native source profiling preserves source metadata through NIL assembly and linking. Program output, arguments, stdin, and exit status are preserved; report destinations cannot overwrite existing files. Native parallel worker copies remain isolated from profiling context access.

The first milestone measures runtime logical storage, not RSS. VM text/record storage, direct unmanaged libc allocations, and additional worker sessions remain outside the capture. CPU profiling, heap snapshots, allocation lifetimes, and debugger capture remain planned. F53–F54 document accounting boundaries and existing native standard-library gaps.

Validation: all 473 CTests; 960 SDK consumer executions across source and binary libraries; 96 copied-SDK profiling checks; 100 extension unit tests; 81 real VS Code host checks. Native GC stress verifies collection with rooted values preserved. The final SDK and installed VSIX are verified. The final test/documentation commit leaves all 176 SDK production files byte-identical to the copied SDK used for consumer and editor qualification. Evidence is retained locally in build/aperture-work/.

Stacked on #11 (codex/native-tuple-arrays); the diff contains the Aperture implementation and its regression coverage.

@bytetroll
bytetroll marked this pull request as ready for review October 26, 2026 20:42
Base automatically changed from codex/native-tuple-arrays to master October 26, 2026 20:46
@bytetroll
bytetroll merged commit 0052c0a into master Oct 26, 2026
6 checks passed
@bytetroll
bytetroll deleted the codex/aperture-memory-profile branch October 26, 2026 20:46
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