Table of Contents

Struct SourceLocationManifestEntry

Namespace
Typhon.Profiler
Assembly
Typhon.Profiler.dll

One entry in the trailing SourceLocationManifest of a .typhon-trace file. Maps a compile-time Id (the value carried in span records when SpanFlagsHasSourceLocation is set) to a source location: the file path (via FileId indexing into the parallel FileTable), the line number, the kind of factory the call site invoked, and the containing method name for display. See claude/design/Profiler/10-profiler-source-attribution.md §4.7.2.

public readonly struct SourceLocationManifestEntry
Inherited Members

Constructors

SourceLocationManifestEntry(ushort, ushort, uint, byte, string)

Constructs a manifest entry. A null method is stored as the empty string.

public SourceLocationManifestEntry(ushort id, ushort fileId, uint line, byte kind, string method)

Parameters

id ushort
fileId ushort
line uint
kind byte
method string

Properties

FileId

Index into the parallel FileTable.

public ushort FileId { get; }

Property Value

ushort

Id

Site id (1-based, 0 = "unknown source").

public ushort Id { get; }

Property Value

ushort

Kind

Compile-time hint of the TraceEventKind for this site. May be 0 if the generator chose not to emit per-site kinds (the wire's record kind byte is the source of truth at runtime).

public byte Kind { get; }

Property Value

byte

Line

1-based line number within the file.

public uint Line { get; }

Property Value

uint

Method

Containing-method short name for display ("BTree.Insert", "ChunkedTransaction.CommitChanges", ...).

public string Method { get; }

Property Value

string