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
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 alsoCollaborate 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 articleWas 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