Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Diagnostics.​Tracing.​IncrementingPollingCounter

Assembly: System.Diagnostics.Tracing

Inheritance: object → DiagnosticCounter → IncrementingPollingCounter

Provides a variant of <see cref="T:System.Diagnostics.Tracing.EventCounter" /> for variables that are ever-increasing, such as the number of exceptions in the runtime.

Properties

public TimeSpan
DisplayRateTimeScale
Gets or sets rate at which this metric should be displayed as.
public string
DisplayName
Gets or sets the display name of the counter.
public string
DisplayUnits
Gets or sets the display units of the counter.
public EventSource
EventSource
Gets the EventSource that this counter is attached to.
public string
Name
Gets the name of this counter.

Methods

public string
ToString​()
Returns The name and increment of the current incrementing polling counter.
Returns a string representation of the current incrementing polling counter instance.
public void
AddMetadata​(string key, string value)
Inherited from DiagnosticCounter
key The metadata key.
value The metadata value.
Adds key-value metadata to the counter that will be included as a part of the payload.
public void
Dispose​()
Inherited from DiagnosticCounter
Removes the counter from the set that the <see cref="T:System.Diagnostics.Tracing.EventSource" /> will report on.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object