ProfilerMeasure Method

If Enabled is , starts a profiling measure. Use in using block.

Definition

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

Parameters

category  String
A category that contains the operation. Can be the name of the caller type, for example. If or empty, the measurement will be uncategorized.
operation  String
Name of the operation.

Return Value

IDisposable
An IDisposable instance that should be enclosed into a using block. When Enabled is , this method returns .

Remarks

  Tip

See the Remarks section of the Profiler class for details and an example.

See Also