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

NBench Exception: %Performance Counter% is not registered on this machine. Please Create it First. #349

Open
adybka opened this issue Jul 9, 2020 · 0 comments

Comments

@adybka
Copy link

adybka commented Jul 9, 2020

I am trying to incorporate windows performance counters into NBench benchmarking. When I try to use the PerformanceCounterMeasurement attribute with almost any perfomance counter I get the nbench exception "%Performance Counter% is not registered on this machine. Please Create it First." I have looking everywhere for example of performance counters being used or the source code for NBench.PerformanceCounter. [PerformanceCounterMeasurement("Processor", "% Processor Time")] This is the line i am using to include the measurement attribute. If there is a known solution or source code/api I could look at, that would be great!

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

No branches or pull requests

1 participant