Skip to content

Conversation

@tallpsmith
Copy link
Contributor

@tallpsmith tallpsmith commented Dec 4, 2025

At the moment, pmstat on macOS is quite lean on what it can show because some metrics are not available (yet).

this change aims to add some metrics but also modify pmstat so that it (optionally) hides columns that are not available.

I held several sessions with Claude Code to get here because it's certainly better at C than I am... After some back and forth I narrowed in on the -C and --compact mode for pmstat which seemed to not conflict with any other pm-tool that Claude looked at (and my fuzzy memory). I elected to make this compact mode optional, and not default, just to maintain backwards compatibility. There's certainly a 'brain freeze' moment when one runs pmstat and sees a lot of columns missing, so I wondered if it was better to maintain the original layout (with missing metrics) as the default for us old folks...

There may be some other metrics I can get for macOS, will do that in a separate set of sessions but thought I'd start here to get some feedback on it (I'll pass that on to Claude. :-D )

I had some earlier CI build failures on my fork, but not sure if that was just when I made the fork, so I have rebased my branch from this morning and lets see what happens.

This goes towards #2303

…ty of metrics.

Pretty close, but column data is shifted right by a single column.

This used Claude Code. (Even AI gets off-by-one errors?)
…w them to be exposed for things like pmstat

Used Claude Code to generate this.
…etrics (original behaviour) but add "compact" mode which leverages the auto-suppression logic.
@tallpsmith tallpsmith added the macOS For issues specific or related to macOS label Dec 5, 2025
@tallpsmith tallpsmith requested a review from natoscott December 7, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macOS For issues specific or related to macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant