New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display core parking indicator when hovering the mouse over the processor graphs #2040
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wnstngs thanks for the contribution! I agree with showing the parked state in the tooltip. I have some feedback. Either I can merge this as and and go back to address it myself, or you can do so. Let me know how you'd like to handle it.
… Don't pass a handle to a process as we aren't interested in whether CPU set is allocated to any process (the indirected handle still has to be valid and point to 0).
…ffset to the next set when iterating CPU sets instead of indexing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me, thanks for the contribution! I will merge this when I have time - there is some cleanup I want to do after it gets merged, specifically around the juggling the formatting of the string mentioned in the PR.
@jxy-s Thank you! |
Purpose
Starting with Windows 7, the thread scheduler and processor power manager are able to park processors for power saving purposes. Parking a processor makes it unavailable for thread scheduling, which contributes to potentially putting this processor into a deep idle state and thus reducing power consumption. Parked cores are marked as "Parked" in Task Manager, but not in System Informer.
This PR adds support for displaying core parking status in the tooltip when hovering over the processor graphs. Previously there was a proposal to add such a feature: #1083
Proposed changes
TODO?
format
indexes change depending on different conditions). For example, at least use named variables for indexes of certain components of the tooltip (load percentages, relationships, time, and so on).