Table of Contents

Class MemoryStatistics

Namespace
DotCompute.Backends.CPU.Threading.NUMA
Assembly
DotCompute.Backends.CPU.dll

Memory allocation statistics.

public sealed class MemoryStatistics
Inheritance
MemoryStatistics
Inherited Members

Properties

AllocationsByType

Allocations by type.

public required Dictionary<AllocationType, int> AllocationsByType { get; init; }

Property Value

Dictionary<AllocationType, int>

AverageAllocationSize

Average allocation size.

public required long AverageAllocationSize { get; init; }

Property Value

long

DistributionBalance

Gets memory distribution balance score.

public double DistributionBalance { get; }

Property Value

double

LeastUsedNode

Gets the least used node.

public int LeastUsedNode { get; }

Property Value

int

MemoryFragmentation

Memory fragmentation estimate (0.0 to 1.0).

public required double MemoryFragmentation { get; init; }

Property Value

double

MostUsedNode

Gets the most used node.

public int MostUsedNode { get; }

Property Value

int

NodeAllocations

Bytes allocated per NUMA node.

public required IReadOnlyList<long> NodeAllocations { get; init; }

Property Value

IReadOnlyList<long>

SystemAllocations

Bytes allocated using system allocation.

public required long SystemAllocations { get; init; }

Property Value

long

TotalAllocatedBytes

Total allocated bytes.

public required long TotalAllocatedBytes { get; init; }

Property Value

long

TotalAllocations

Total number of allocations.

public required int TotalAllocations { get; init; }

Property Value

int