Skip to content

Report RSS and the commit charge on Windows - #552

Open
hsbt wants to merge 2 commits into
mainfrom
claude/frosty-einstein-9209d8
Open

hsbt wants to merge 2 commits into
mainfrom
claude/frosty-einstein-9209d8

Conversation

@hsbt

@hsbt hsbt commented Oct 12, 2026

Copy link
Copy Markdown
Member

On Windows, rss, maxrss and the RSS samples taken after each iteration are always 0, because there is no /proc, ps or getrusage to read them from.

This reports the working set and its peak from GetProcessMemoryInfo as RSS and MAXRSS. It also records the commit charge and its peak as commit_charge and peak_commit_charge, since private allocations on Windows show up there more than in the working set.

Generated with Claude Code

hsbt and others added 2 commits October 12, 2026 15:15
Windows has neither /proc nor ps nor getrusage, so RSS and MAXRSS were always 0. The working set and its peak from GetProcessMemoryInfo are the closest equivalents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Changes in private memory on Windows show up in the commit charge (PagefileUsage of GetProcessMemoryInfo) more than in the working set. The result JSON keeps it and its peak as commit_charge and peak_commit_charge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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