Skip to content

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

@adybka

Description

@adybka

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions