src/Uno.Diagnostics.Eventing/Performance/Performance.cs
/// <summary>
/// Increases the specified counter name for the duration of the disposable scope. Once the scope is disposed, the counter is decreased.
/// </summary>
/// <param name="name">The name of the counter</param>
/// <returns></returns>
Increases the specified counter name for the duration of the disposable scope. Once the scope is disposed, the counter is decreased.
Increases the specified counter name for the duration of the disposable scope . Once the scope is disposed the counter is decreased .
public static IDisposable Count(string name)
		{
			if (Service != null && Service.IsEnabled)
			{
				Service.Increment(name);
				return new ActionDisposable(() => Service.Decrement(name));
			}
			return null;
		}
public static IDisposable Count ( string name ) { if ( Service != null && Service . IsEnabled ) { Service . Increment ( name ) ; return new ActionDisposable ( ( ) => Service . Decrement ( name ) ) ; } return null ; }
Increases the specified counter name for the duration of the disposable scope.
Increases the specified counter name for the duration of the disposable scope .
None
name
string
The name of the counter
The name of the counter