Skip to content

feat(ports): read CPU, memory and swap on Windows (#1054) - #10

Merged
leonardoxr merged 2 commits into
mainfrom
merge/windows-host-load
Oct 30, 2026
Merged

leonardoxr merged 2 commits into
mainfrom
merge/windows-host-load

Conversation

@leonardoxr

Copy link
Copy Markdown
Owner

Our fork carries callstackincubator#1054; this branch resolves its ports manual conflict with fork main.

leonardoxr and others added 2 commits October 29, 2026 22:29
Any host that is not macOS got the Linux probe, which reads /proc, so a
Windows worker showed CPU and memory as unavailable in `simlock status`
and the console. `WindowsHostLoadProbe` reads the CPU times from
`os.cpus()` (shared with the macOS probe), total and available memory
from `os.totalmem()`/`os.freemem()` (Windows' available physical memory),
and the page file in use from one PowerShell CIM query. That query
costs about a second, so its answer is kept 5 minutes; a failed one
leaves memory out, as an unreadable swap line does on macOS.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@leonardoxr
leonardoxr merged commit 90e1e74 into main Oct 30, 2026
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