A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.tracing.incrementingpollingcounter below:

IncrementingPollingCounter Class (System.Diagnostics.Tracing) | Microsoft Learn

IncrementingPollingCounter Class Definition

Provides a variant of EventCounter for variables that are ever-increasing, such as the number of exceptions in the runtime.

public ref class IncrementingPollingCounter : System::Diagnostics::Tracing::DiagnosticCounter
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public class IncrementingPollingCounter : System.Diagnostics.Tracing.DiagnosticCounter
public class IncrementingPollingCounter : System.Diagnostics.Tracing.DiagnosticCounter
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type IncrementingPollingCounter = class
    inherit DiagnosticCounter
type IncrementingPollingCounter = class
    inherit DiagnosticCounter
Public Class IncrementingPollingCounter
Inherits DiagnosticCounter
Inheritance
IncrementingPollingCounter
Attributes

IncrementingPollingCounter objects live as long as the EventSource that they are attached to unless they are explicitly disposed.

totalValueProvider is a method used for polling the values at the interval specified by the listener. This method is expected to return an incrementing float value; otherwise, an increment of a negative value may be reported.

IncrementingPollingCounter does not calculate statistics like mean and standard deviation because it only accumulates the counter value. Unlike IncrementingEventCounter, this takes in a polling callback that it can call to update its own metric periodically.

For an example that uses IncrementingPollingCounter inside the runtime as for runtime performance counters, see the CoreCLR source for RuntimeEventSource on GitHub.

Constructors Properties Methods See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4