Class SessionMemoryStatus
A transport-friendly projection of SessionMemoryInfo.
public record SessionMemoryStatus : IEquatable<SessionMemoryStatus>
- Inheritance
-
SessionMemoryStatus
- Implements
- Inherited Members
Remarks
SessionMemoryInfo itself is a record struct with computed members, which the
JSON-RPC serializer would round-trip only by accident; this carries the same numbers as plain
properties, computed ones included, so a client renders them without re-deriving anything.
Properties
AllocatedBytes
Bytes currently handed out to live allocations.
public int AllocatedBytes { get; init; }
Property Value
AvailableBytes
Reserved bytes not currently handed out — reserved - allocated.
public int AvailableBytes { get; init; }
Property Value
CommittedBytes
Bytes backed by committed storage.
public int CommittedBytes { get; init; }
Property Value
FreeBytes
Bytes that were allocated and released, and sit on the free lists for reuse.
public int FreeBytes { get; init; }
Property Value
LargestFreeBlock
The largest single block the free lists can satisfy without a new segment.
public int LargestFreeBlock { get; init; }
Property Value
ReservedBytes
The total address space the session's segments reserve.
public int ReservedBytes { get; init; }
Property Value
Methods
From(SessionMemoryInfo)
Projects an allocator's own SessionMemoryInfo onto the wire.
public static SessionMemoryStatus From(SessionMemoryInfo info)
Parameters
infoSessionMemoryInfoThe allocation statistics to project.