Struct ThreadInfoEventData
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
threadSlotbytetimestamplongmanagedThreadIdintnameUtf8ReadOnlyMemory<byte>kindThreadKind
Properties
Kind
Producer-thread category — drives the viewer's filter tree's Main/Workers/Other split.
public ThreadKind Kind { get; }
Property Value
ManagedThreadId
.NET managed thread id of the producer thread.
public int ManagedThreadId { get; }
Property Value
NameUtf8
UTF-8-encoded name bytes, sliced from the original record. Caller converts to string on demand.
public ReadOnlyMemory<byte> NameUtf8 { get; }
Property Value
ThreadSlot
Producer thread slot (0-255) this identity record claims.
public byte ThreadSlot { get; }
Property Value
Timestamp
Emit timestamp in Stopwatch.GetTimestamp() ticks (slot-claim time).
public long Timestamp { get; }
Property Value
Methods
GetName()
public string GetName()