Class BufferMetrics
- Namespace
- DotCompute.Core.Extensions
- Assembly
- DotCompute.Core.dll
Metrics information for memory buffers. Used by extension methods to provide performance insights.
public sealed class BufferMetrics
- Inheritance
-
BufferMetrics
- Inherited Members
Properties
ElementCount
Gets or sets the element count.
public int ElementCount { get; init; }
Property Value
IsDirty
Gets or sets whether the buffer needs synchronization.
public bool IsDirty { get; init; }
Property Value
IsDisposed
Gets or sets whether the buffer is disposed.
public bool IsDisposed { get; init; }
Property Value
IsOnDevice
Gets or sets whether the buffer is available on device.
public bool IsOnDevice { get; init; }
Property Value
IsOnHost
Gets or sets whether the buffer is available on host.
public bool IsOnHost { get; init; }
Property Value
SizeInBytes
Gets or sets the buffer size in bytes.
public long SizeInBytes { get; init; }
Property Value
State
Gets or sets the current buffer state.
public BufferState State { get; init; }
Property Value
Methods
ToString()
Returns a string representation of the buffer metrics.
public override string ToString()
Returns
- string
A formatted string with buffer information.