Struct MemoryMetrics
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
AllocatedByteslongCurrent live allocation in bytes.
PeakByteslongMaximum allocation ever observed (high-water mark, resettable).
Properties
AllocatedBytes
Current live allocation in bytes.
public long AllocatedBytes { get; init; }
Property Value
PeakBytes
Maximum allocation ever observed (high-water mark, resettable).
public long PeakBytes { get; init; }
Property Value
Methods
Deconstruct(out long, out long)
public void Deconstruct(out long AllocatedBytes, out long PeakBytes)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(MemoryMetrics)
public bool Equals(MemoryMetrics other)
Parameters
otherMemoryMetrics
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(MemoryMetrics, MemoryMetrics)
public static bool operator ==(MemoryMetrics left, MemoryMetrics right)
Parameters
leftMemoryMetricsrightMemoryMetrics
Returns
operator !=(MemoryMetrics, MemoryMetrics)
public static bool operator !=(MemoryMetrics left, MemoryMetrics right)
Parameters
leftMemoryMetricsrightMemoryMetrics