Table of Contents

Struct MemoryMetrics

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Tracks byte allocations owned by a resource node.

public readonly struct MemoryMetrics : IEquatable<MemoryMetrics>
Implements
Inherited Members

Constructors

MemoryMetrics(long, long)

Tracks byte allocations owned by a resource node.

public MemoryMetrics(long AllocatedBytes, long PeakBytes)

Parameters

AllocatedBytes long

Current live allocation in bytes.

PeakBytes long

Maximum allocation ever observed (high-water mark, resettable).

Properties

AllocatedBytes

Current live allocation in bytes.

public long AllocatedBytes { get; init; }

Property Value

long

PeakBytes

Maximum allocation ever observed (high-water mark, resettable).

public long PeakBytes { get; init; }

Property Value

long

Methods

Deconstruct(out long, out long)

public void Deconstruct(out long AllocatedBytes, out long PeakBytes)

Parameters

AllocatedBytes long
PeakBytes long

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(MemoryMetrics)

public bool Equals(MemoryMetrics other)

Parameters

other MemoryMetrics

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(MemoryMetrics, MemoryMetrics)

public static bool operator ==(MemoryMetrics left, MemoryMetrics right)

Parameters

left MemoryMetrics
right MemoryMetrics

Returns

bool

operator !=(MemoryMetrics, MemoryMetrics)

public static bool operator !=(MemoryMetrics left, MemoryMetrics right)

Parameters

left MemoryMetrics
right MemoryMetrics

Returns

bool