Table of Contents

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

long

PeakMemoryBytes

Gets the memory high watermark (peak usage).

long PeakMemoryBytes { get; }

Property Value

long

Methods

GetMemoryUsageAsync(CancellationToken)

Gets the current memory usage information.

Task<MemoryUsageResult> GetMemoryUsageAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<MemoryUsageResult>

Memory usage details.