Class PerformanceProfiler
- Namespace
- DotCompute.Abstractions.Telemetry.Providers
- Assembly
- DotCompute.Abstractions.dll
Abstract base class for performance profilers.
public abstract class PerformanceProfiler : IDisposable
- Inheritance
-
PerformanceProfiler
- Implements
- Inherited Members
- Extension Methods
Methods
CreateProfileAsync(string, ProfileOptions?, CancellationToken)
Creates a performance profile.
public abstract Task<PerformanceProfile> CreateProfileAsync(string correlationId, ProfileOptions? options, CancellationToken cancellationToken)
Parameters
correlationIdstringThe correlation ID.
optionsProfileOptionsThe profile options.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task<PerformanceProfile>
The performance profile.
Dispose()
Disposes the performance profiler.
public void Dispose()
Dispose(bool)
Releases resources used by the performance profiler.
protected virtual void Dispose(bool disposing)
Parameters
disposingboolTrue if called from Dispose(), false if called from finalizer.