Skip to content

linux/cpu: add idle/io_wait/nice/system/user percentages - #1627

Draft
maximeborges wants to merge 7 commits into
GuillaumeGomez:mainfrom
maximeborges:feature/cpu_detail
Draft

linux/cpu: add idle/io_wait/nice/system/user percentages#1627
maximeborges wants to merge 7 commits into
GuillaumeGomez:mainfrom
maximeborges:feature/cpu_detail

Conversation

@maximeborges

Copy link
Copy Markdown

As a first step to remove the deprecated heim dependency for vector, this PR adds support to retrieve the detailed CPU usage.

@maximeborges
maximeborges marked this pull request as draft February 18, 2026 21:32
@GuillaumeGomez

Copy link
Copy Markdown
Owner

An important note: if it isn't implemented for all (or at least most) supported platforms, the feature will be rejected.

@maximeborges

Copy link
Copy Markdown
Author

Looking a bit more into the code, I understand why, and started implementing it on *BSD also, thus why I switched the PR to draft :)

@GuillaumeGomez

Copy link
Copy Markdown
Owner

Ah nice. :)

One more thing: the src/common code is not supposed to contain cfg either. Ping me once ready for review.

@maximeborges

Copy link
Copy Markdown
Author

For Vector I'd like to actually add getters for the raw values for the different times, would that be fine?
I'm not really sure if this is used by many people but that would be a blocking point to drop heim without a breaking change.

@GuillaumeGomez

Copy link
Copy Markdown
Owner

Hard to answer without code. However, if it's not unified across platforms, then no, unlikely to get merged.

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.

2 participants