Skip to content
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

Windows: allow recovering from performance counter errors #1385

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

kathoum
Copy link
Contributor

@kathoum kathoum commented Nov 13, 2024

#1381

If another program is updating the performance counters registry, CPU performance counters cannot be opened because the performance counter registry is in an invalid state.

When it happens, recreate the performance counter query at the next refresh of CPU information, adding a request to reload performance counter information from the registry (without this request, the performance counter library caches the registry data internally).

When the CPU performance counters cannot be opened
because the performance counter registry is in an invalid state,
recreate the query at the next CPU information refresh,
adding a request to the performance library to reload
the performance counter registry.
@GuillaumeGomez
Copy link
Owner

Nice, thanks!

@GuillaumeGomez GuillaumeGomez merged commit 88f9c4b into GuillaumeGomez:master Nov 13, 2024
67 checks passed
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