Table of Contents

Interface IMemoryStatistics

Namespace
DotCompute.Abstractions
Assembly
DotCompute.Abstractions.dll

Memory usage statistics. This is a duplicate of DotCompute.Core.Memory.IMemoryStatistics for backward compatibility.

public interface IMemoryStatistics

Properties

AllocationCount

Gets allocation count.

int AllocationCount { get; }

Property Value

int

AvailableBytes

Gets available memory in bytes.

long AvailableBytes { get; }

Property Value

long

FragmentationPercentage

Gets memory fragmentation percentage.

double FragmentationPercentage { get; }

Property Value

double

PeakUsageBytes

Gets peak memory usage in bytes.

long PeakUsageBytes { get; }

Property Value

long

TotalAllocatedBytes

Gets total allocated memory in bytes.

long TotalAllocatedBytes { get; }

Property Value

long

UsageByLocation

Gets memory usage by location.

IReadOnlyDictionary<MemoryLocation, long> UsageByLocation { get; }

Property Value

IReadOnlyDictionary<MemoryLocation, long>