Table of Contents

Class MemoryAllocatorStatistics

Namespace
DotCompute.Memory
Assembly
DotCompute.Memory.dll

A class that represents memory allocator statistics.

public record MemoryAllocatorStatistics : IEquatable<MemoryAllocatorStatistics>
Inheritance
MemoryAllocatorStatistics
Implements
Inherited Members

Constructors

MemoryAllocatorStatistics(long, long, long)

A class that represents memory allocator statistics.

public MemoryAllocatorStatistics(long TotalAllocatedBytes, long TotalAllocations, long TotalDeallocations)

Parameters

TotalAllocatedBytes long

The total number of bytes allocated.

TotalAllocations long

The total number of allocations made.

TotalDeallocations long

The total number of deallocations made.

Properties

ActiveAllocations

Gets the current number of active allocations.

public long ActiveAllocations { get; }

Property Value

long

TotalAllocatedBytes

The total number of bytes allocated.

public long TotalAllocatedBytes { get; init; }

Property Value

long

TotalAllocations

The total number of allocations made.

public long TotalAllocations { get; init; }

Property Value

long

TotalDeallocations

The total number of deallocations made.

public long TotalDeallocations { get; init; }

Property Value

long