Skip to content

feat: Child process RAM tracking and JSON output#3

Merged
samuelburnham merged 2 commits into
mainfrom
json-ram
Jul 9, 2026
Merged

feat: Child process RAM tracking and JSON output#3
samuelburnham merged 2 commits into
mainfrom
json-ram

Conversation

@samuelburnham

Copy link
Copy Markdown
Member

No description provided.

Two opt-in, dependency-free capabilities for benchmark consumers:

- rss_sampler: a background thread summing VmRSS across this process and
  all descendants, tracking the peak. Captures memory resident in child
  processes (e.g. zkVM ASM microservices in separate PIDs) that a bare
  /proc/self/status read of the parent misses. Public start() /
  peak_tree_rss_bytes() / reset_peak_tree_rss().

- json_sink: a JSON-Lines sink writing {"span","seconds"} per closed
  examined span, plus record_manual for span-free phase timings, so a
  harness can aggregate per-phase timings without scraping the timeline.

Linux-only for RSS; no new dependencies. Tests cover the child-process
peak and the span-timing record.
@samuelburnham
samuelburnham merged commit 465bbca into main Jul 9, 2026
5 checks passed
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.

2 participants