Table of Contents

Class QueueTickEndCodec

Namespace
Typhon.Profiler
Assembly
Typhon.Profiler.dll

Wire codec for QueueTickEnd (kind 244) — per-(tick, queue) rollup emitted at end-of-tick. Surfaces queue-depth telemetry (peak, end-of-tick, overflow, produced, consumed) for the Workbench Data API queue/<name> tracks (#311).

public static class QueueTickEndCodec
Inheritance
QueueTickEndCodec
Inherited Members

Remarks

Folded by IncrementalCacheBuilder into the v12 QueueTickSummaries cache section. One emission per active queue per tick — small, fixed-size record (no payload variability), so we hand-code the codec and skip the source-generated path.

Fields

Size

Total record size in bytes (common header + payload).

public const int Size = 40

Field Value

int

Methods

Read(ReadOnlySpan<byte>)

Decode a QueueTickEnd record back into structured form.

public static QueueTickEndData Read(ReadOnlySpan<byte> source)

Parameters

source ReadOnlySpan<byte>

Returns

QueueTickEndData

Write(Span<byte>, byte, long, uint, ushort, uint, uint, uint, uint, uint)

Encode a QueueTickEnd instant record. Caller is responsible for reserving exactly Size bytes from the producer ring.

public static void Write(Span<byte> destination, byte threadSlot, long timestamp, uint tickNumber, ushort queueId, uint peakDepth, uint endOfTickDepth, uint overflowCount, uint produced, uint consumed)

Parameters

destination Span<byte>
threadSlot byte
timestamp long
tickNumber uint
queueId ushort
peakDepth uint
endOfTickDepth uint
overflowCount uint
produced uint
consumed uint