Table of Contents

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

int

IsDirty

Gets or sets whether the buffer needs synchronization.

public bool IsDirty { get; init; }

Property Value

bool

IsDisposed

Gets or sets whether the buffer is disposed.

public bool IsDisposed { get; init; }

Property Value

bool

IsOnDevice

Gets or sets whether the buffer is available on device.

public bool IsOnDevice { get; init; }

Property Value

bool

IsOnHost

Gets or sets whether the buffer is available on host.

public bool IsOnHost { get; init; }

Property Value

bool

SizeInBytes

Gets or sets the buffer size in bytes.

public long SizeInBytes { get; init; }

Property Value

long

State

Gets or sets the current buffer state.

public BufferState State { get; init; }

Property Value

BufferState

Methods

ToString()

Returns a string representation of the buffer metrics.

public override string ToString()

Returns

string

A formatted string with buffer information.