Skip to content

feat: Child process RAM tracking and JSON output#3

Open
samuelburnham wants to merge 2 commits into
mainfrom
json-ram
Open

feat: Child process RAM tracking and JSON output#3
samuelburnham wants to merge 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.
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