Skip to content

Example for realtime sampling of "\\Processor(*)\\% processor time"? #67

@jjYBdx4IL

Description

@jjYBdx4IL

Can you please give an example on how to do this?

 string[] arr = new string[1];
 arr[0] = "\\Processor(*)\\% processor time";
 PerfCounterRealTimeProbe pcrtp = new PerfCounterRealTimeProbe(this, TimeSpan.FromSeconds(1), arr);

However, that causes a PDH_CSTATUS_NO_OBJECT exception.

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