Table of Contents

Struct MemoryUsageAnalytics

Namespace
DotCompute.Backends.CUDA.Memory.Models
Assembly
DotCompute.Backends.CUDA.dll

Memory usage analytics and statistics returned by GetUsageAnalytics().

public readonly record struct MemoryUsageAnalytics : IEquatable<MemoryUsageAnalytics>
Implements
Inherited Members

Properties

AverageAllocationSize

Gets the average allocation size in bytes.

public double AverageAllocationSize { get; init; }

Property Value

double

FailedAllocations

Gets the number of allocation requests that failed.

public long FailedAllocations { get; init; }

Property Value

long

LastOptimizationTime

Gets the timestamp of the last memory optimization pass.

public DateTimeOffset LastOptimizationTime { get; init; }

Property Value

DateTimeOffset

PeakMemoryUsage

Gets the peak memory usage observed in bytes.

public long PeakMemoryUsage { get; init; }

Property Value

long

PoolHitRatio

Gets the hit ratio for the optional memory pool in the range [0, 1].

public double PoolHitRatio { get; init; }

Property Value

double

TotalAllocations

Gets the total number of allocation requests recorded.

public long TotalAllocations { get; init; }

Property Value

long

TotalBytesAllocated

Gets the total number of bytes allocated across all requests.

public long TotalBytesAllocated { get; init; }

Property Value

long

TotalBytesTransferred

Gets the total number of bytes transferred (host-to-device, device-to-host, device-to-device).

public long TotalBytesTransferred { get; init; }

Property Value

long

TotalDeallocations

Gets the total number of deallocations recorded.

public long TotalDeallocations { get; init; }

Property Value

long