Skip to content

feat: inspect validation compiler programs and memory - #6

Draft
irvinebroque wants to merge 2 commits into
mainfrom
codex/inspect-validation-program
Draft

feat: inspect validation compiler programs and memory#6
irvinebroque wants to merge 2 commits into
mainfrom
codex/inspect-validation-program

Conversation

@irvinebroque

@irvinebroque irvinebroque commented Sep 5, 2026

Copy link
Copy Markdown
Owner

A validation build may load far more TypeScript files than the few containing RPC markers. When memory use grows, we need to see what the compiler actually loaded before deciding what to optimize.

The optional inspect-program command writes the root files, dependencies, and files actually transformed to JSON. It uses the real build transform, so aliases and shadowed imports are handled consistently.

A separate optional report measures memory at three stages and records the environment. It requires --expose-gc. The graph hash identifies the report, not source contents; memory figures vary between runs. The two output paths must differ so one report cannot overwrite the other.

The README and validation guide include commands and interpretation, with a minor changeset. Ordinary builds are unchanged. All 623 Node and Workers tests, build, type checks, and Markdown lint pass.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


Brendan Irvine-Broque seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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