ProfilerGetMeasurementResults(String) Method

Gets the measurement results of the given category so far.

Definition

Namespace: KGySoft.Diagnostics
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public static IEnumerable<IMeasureItem> GetMeasurementResults(
	string category
)

Parameters

category  String
The category of the measurement results to obtain.

Return Value

IEnumerableIMeasureItem
The measurement results of the given category collected so far.

Remarks

If AutoSaveResults is , the measurement results are automatically dumped in XML files on application exit, so accessing this property is required only when measurements are needed to be accessed programmatically.

Getting this property is an O(1) operation. The returned value is a lazy enumerator. If Measure(String, String) method is called during the enumeration an exception might be thrown.

  Note

The enumerator of the returned collection does not support the IEnumerator.Reset method.

See Also