Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

EventCounter.WriteMetric Method

Definition

Namespace:
System.Diagnostics.Tracing
Assemblies:
netstandard.dll, System.Diagnostics.Tracing.dll
Assembly:
System.Diagnostics.Tracing.dll
Assembly:
netstandard.dll

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
WriteMetric(Double)

Writes the metric if performance counters are on.

WriteMetric(Single)

Writes the metric if performance counters are on.

WriteMetric(Double)

Source:
EventCounter.cs
Source:
EventCounter.cs
Source:
EventCounter.cs
Source:
EventCounter.cs
Source:
EventCounter.cs

Writes the metric if performance counters are on.

public:
 void WriteMetric(double value);
public void WriteMetric(double value);
member this.WriteMetric : double -> unit
Public Sub WriteMetric (value As Double)

Parameters

value
Double

The value to be written.

Remarks

For an example of how to use the WriteMetric(Single) method, see Introduction Tutorial: How to measure performance for very frequent events using EventCounters.

Applies to

WriteMetric(Single)

Source:
EventCounter.cs
Source:
EventCounter.cs
Source:
EventCounter.cs
Source:
EventCounter.cs
Source:
EventCounter.cs

Writes the metric if performance counters are on.

public:
 void WriteMetric(float value);
public void WriteMetric(float value);
member this.WriteMetric : single -> unit
Public Sub WriteMetric (value As Single)

Parameters

value
Single

The value to be written.

Remarks

For an example of how to use the WriteMetric(Single) method, see the Introduction Tutorial: How to measure performance for very frequent events using EventCounters topic.

Applies to


Feedback

Was this page helpful?