ProfilerGetMeasurementResults Method

Gets the measurement results so far.

Definition

Namespace: KGySoft.Diagnostics
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.1.0
C#
public static IEnumerable<IMeasureItem> GetMeasurementResults()

Return Value

IEnumerableIMeasureItem
The measurement results 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