ProfilerGetMeasurementResult Method

Gets a measurement result as an IMeasureItem instance, or , if the measurement result is not found with the given category and operation.

Definition

Namespace: KGySoft.Diagnostics
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0
C#
public static IMeasureItem? GetMeasurementResult(
	string? category,
	string operation
)

Parameters

category  String
The category name of the operation. If or empty, looks for an uncategorized operation.
operation  String
Name of the operation.

Return Value

IMeasureItem
An IMeasureItem instance that contains the measurement results of the required operation, or , if the measurement result is not found with the given category and operation.

Remarks

Unless Reset is called, there is no need to retrieve the measurement result of the same category and again and again because the returned IMeasureItem instance reflects the changes of the measurement operation.

See Also