Table of Contents

Class TraceEventKindExtensions

Namespace
Typhon.Profiler
Assembly
Typhon.Profiler.dll

Helpers for TraceEventKind range classification. Used by readers and the consumer drain loop to decide which header shape to parse.

public static class TraceEventKindExtensions
Inheritance
TraceEventKindExtensions
Inherited Members

Methods

IsSpan(TraceEventKind)

true when the kind uses the span header extension (25-byte span preamble after the 12-byte common header, plus optional 16-byte trace context). Instant kinds (< 10) use only the common header + optional tiny payload.

public static bool IsSpan(this TraceEventKind kind)

Parameters

kind TraceEventKind

Returns

bool

Remarks

PerTickSnapshot is explicitly excluded: its numeric ID is ≥ 10 for category grouping with other metric records, but its wire shape is instant (no span header extension). Any future instant-style kind placed above 9 must be added to this exclusion — otherwise the consumer will misread the 25 bytes immediately after the common header as span metadata.

Concurrency tracing kinds 90–116 (Phase 2) are also instant-style and excluded as a contiguous range. Spatial tracing kinds 117–145 (Phase 3) are a mix; the per-kind exclusions are listed in the body.