Table of Contents

Class TransferStatistics

Namespace
DotCompute.Memory.Types
Assembly
DotCompute.Memory.dll

Comprehensive transfer statistics for monitoring memory transfer operations.

public class TransferStatistics
Inheritance
TransferStatistics
Inherited Members

Remarks

This class provides detailed statistics about memory transfer operations, including throughput metrics, transfer counts, and system resource utilization.

Properties

ActiveTransfers

Gets or sets the active transfers.

public int ActiveTransfers { get; set; }

Property Value

int

The number of transfer operations currently in progress.

AverageTransferRate

Gets or sets the average transfer rate.

public double AverageTransferRate { get; set; }

Property Value

double

The mean transfer rate across all operations in bytes per second.

AverageTransferSize

Gets or sets the average size of the transfer.

public long AverageTransferSize { get; set; }

Property Value

long

The mean size of transfer operations in bytes.

CurrentMemoryPressure

Gets or sets the current memory pressure.

public double CurrentMemoryPressure { get; set; }

Property Value

double

A value between 0 and 1 indicating the current memory pressure (1 = maximum pressure).

FailedTransferCount

Gets or sets the number of failed transfers.

public long FailedTransferCount { get; set; }

Property Value

long

The count of transfer operations that encountered errors.

FailureRate

Gets the failure rate as a percentage.

public double FailureRate { get; }

Property Value

double

The percentage of failed transfers (0-100).

PeakMemoryUsage

Gets or sets the peak memory usage during transfers.

public long PeakMemoryUsage { get; set; }

Property Value

long

The maximum memory usage observed during transfer operations in bytes.

PeakTransferRate

Gets or sets the peak transfer rate achieved.

public double PeakTransferRate { get; set; }

Property Value

double

The maximum transfer rate observed in bytes per second.

SuccessRate

Gets the success rate as a percentage.

public double SuccessRate { get; }

Property Value

double

The percentage of successful transfers (0-100).

TotalBytesTransferred

Gets or sets the total bytes transferred.

public long TotalBytesTransferred { get; set; }

Property Value

long

The cumulative number of bytes transferred across all operations.

TotalRetryCount

Gets or sets the total retry count across all transfers.

public long TotalRetryCount { get; set; }

Property Value

long

The cumulative number of retry attempts made.

TotalTransferCount

Gets or sets the total transfer count.

public long TotalTransferCount { get; set; }

Property Value

long

The total number of transfer operations completed.

Methods

Reset()

Resets all statistics to their initial values.

public void Reset()

ToString()

Gets a formatted summary of the transfer statistics.

public override string ToString()

Returns

string

A human-readable summary of the transfer statistics.