Skip to content

Performance counters several samples within a second #54137

Open
@jmecosta

Description

@jmecosta

Hi,

trying to use performance counters to take several samples (10) per second. However im seeing .NextValue() takes about 100ms or in some cases (not sure because of degraded performance) even 0.5 seconds...

The documentation does suggest that 1sec should be the minimum to be used between calls of .NextValue().

Is there are good alternative to handle this scenario?

To reduce the accumulated affect of calling .NextValue() in several performace counters, im spawning one thread per counter (9 threads at the moment)

There are some operations that last 1, or 2 seconds... so i need to collect a few samples to be able to plot something...

This seems ok, but i cant guarentee the sampling to be done in regular intervals
image

thanks for any pointers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions