Show / Hide Table of Contents

Class PerformanceCounterExtensions

Helper extension methods for PerformanceCounter.

Inheritance
System.Object
PerformanceCounterExtensions
Namespace: Eco.Shared.Tools
Assembly: Eco.Shared.dll
Syntax
public static class PerformanceCounterExtensions : Object

Methods

AddValueIfActive(PerformanceCounter, String)

Adds new value only if Active is true. Returns default value otherwise which won't record any metric on System.IDisposable.Dispose"/>.

Declaration
public static PerformanceCounterValueRef AddValueIfActive(this PerformanceCounter performanceCounter, string name = null)
Parameters
Type Name Description
PerformanceCounter performanceCounter
System.String name
Returns
Type Description
PerformanceCounterValueRef
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾