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
FailedAllocations
Gets the number of allocation requests that failed.
public long FailedAllocations { get; init; }
Property Value
LastOptimizationTime
Gets the timestamp of the last memory optimization pass.
public DateTimeOffset LastOptimizationTime { get; init; }
Property Value
PeakMemoryUsage
Gets the peak memory usage observed in bytes.
public long PeakMemoryUsage { get; init; }
Property Value
PoolHitRatio
Gets the hit ratio for the optional memory pool in the range [0, 1].
public double PoolHitRatio { get; init; }
Property Value
TotalAllocations
Gets the total number of allocation requests recorded.
public long TotalAllocations { get; init; }
Property Value
TotalBytesAllocated
Gets the total number of bytes allocated across all requests.
public long TotalBytesAllocated { get; init; }
Property Value
TotalBytesTransferred
Gets the total number of bytes transferred (host-to-device, device-to-host, device-to-device).
public long TotalBytesTransferred { get; init; }
Property Value
TotalDeallocations
Gets the total number of deallocations recorded.
public long TotalDeallocations { get; init; }