ProfilerMeasure Method
If
Enabled is
, starts a profiling measure. Use in
using block.
Namespace: KGySoft.DiagnosticsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static IDisposable? Measure(
string? category,
string operation
)
Public Shared Function Measure (
category As String,
operation As String
) As IDisposable
public:
static IDisposable^ Measure(
String^ category,
String^ operation
)
static member Measure :
category : string *
operation : string -> IDisposable
- 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.
IDisposableAn
IDisposable instance that should be enclosed into a
using block.
When
Enabled is
, this method returns
.
See the
Remarks section of the
Profiler class for details and an example.