Table of Contents

Struct ThreadInfoEventData

Namespace
Typhon.Profiler
Assembly
Typhon.Profiler.dll

Decoded form of a ThreadInfo record — per-slot thread identity (managed thread ID + UTF-8 name + ThreadKind) emitted once when a producer thread claims its slot. Lets the viewer label lanes and group them by kind in its filter UI.

public readonly struct ThreadInfoEventData
Inherited Members

Constructors

ThreadInfoEventData(byte, long, int, ReadOnlyMemory<byte>, ThreadKind)

Constructs the decoded thread-info record from its wire fields.

public ThreadInfoEventData(byte threadSlot, long timestamp, int managedThreadId, ReadOnlyMemory<byte> nameUtf8, ThreadKind kind)

Parameters

threadSlot byte
timestamp long
managedThreadId int
nameUtf8 ReadOnlyMemory<byte>
kind ThreadKind

Properties

Kind

Producer-thread category — drives the viewer's filter tree's Main/Workers/Other split.

public ThreadKind Kind { get; }

Property Value

ThreadKind

ManagedThreadId

.NET managed thread id of the producer thread.

public int ManagedThreadId { get; }

Property Value

int

NameUtf8

UTF-8-encoded name bytes, sliced from the original record. Caller converts to string on demand.

public ReadOnlyMemory<byte> NameUtf8 { get; }

Property Value

ReadOnlyMemory<byte>

ThreadSlot

Producer thread slot (0-255) this identity record claims.

public byte ThreadSlot { get; }

Property Value

byte

Timestamp

Emit timestamp in Stopwatch.GetTimestamp() ticks (slot-claim time).

public long Timestamp { get; }

Property Value

long

Methods

GetName()

Decode NameUtf8 as a string. Allocates.

public string GetName()

Returns

string