Interface IMemoryMonitorable
- Namespace
- DotCompute.Abstractions.Health
- Assembly
- DotCompute.Abstractions.dll
Interface for components that expose memory usage monitoring.
public interface IMemoryMonitorable
Properties
CurrentMemoryBytes
Gets the current allocated memory.
long CurrentMemoryBytes { get; }
Property Value
PeakMemoryBytes
Gets the memory high watermark (peak usage).
long PeakMemoryBytes { get; }
Property Value
Methods
GetMemoryUsageAsync(CancellationToken)
Gets the current memory usage information.
Task<MemoryUsageResult> GetMemoryUsageAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<MemoryUsageResult>
Memory usage details.