Printing information about maxRSS#85
Merged
tmcgilchrist merged 1 commit intotarides:mainfrom Apr 17, 2026
Merged
Conversation
Collaborator
|
Worth seeing if we can support macOS and FreeBSD. No idea what the Windows API for this information is. |
c7150a9 to
129a360
Compare
Add platform-specific C stubs to sample VmHWM (Linux), proc_pidinfo (macOS) and sysctl KERN_PROC (FreeBSD) on each poll cycle. The maximum observed value is reported in both human-readable and JSON output as "Max RSS (kB)" / "max_rss_kb". This requires an on_poll callback in the consumer_config so that the RSS sampler runs on every event-polling iteration.
udesou
added a commit
to udesou/running-ng
that referenced
this pull request
Apr 17, 2026
Use olly gc-stats --json and perf stat --json directly, producing a .json sidecar file (NDJSON, one compact object per invocation) next to each .log. The .log keeps the prologue + benchmark stderr + the pretty-printed JSON after the *****; the .json is the primary input for downstream analysis. Drop /usr/bin/time (time_stats) and OCAMLRUNPARAM=v=... (gc_verbose / gc_verbose_oxcaml) from the example and macrobenchmark configs — olly now reports wall/CPU/GC times, allocation stats, collection counts, and (after tarides/runtime_events_tools#85) max_rss_kb, so no custom parsers are needed. Enforce a minimum runtime_events_tools version in the launch script by checking the OLLY_DIR git repo contains the PR anupli#85 feature commit. plot_gc_sweep.py now reads the .json sidecar first (with regex fallback for old text logs) and surfaces max_rss_mb as a heatmap metric.
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.
Used Claude to help me implement it as a new collector and using the C stubs to get the RSS from Linux/FreeBSD/macOS using their own API.