TraceEventEntry
Namespace: Dotsider.Core.Analysis.Models
Assembly: Dotsider.Core.dll
A single traced runtime event captured from the EventPipe session.
public sealed record TraceEventEntry : IEquatable<TraceEventEntry>Inheritance
Section titled “Inheritance”Object → TraceEventEntry
Implements
Section titled “Implements”Constructors
Section titled “Constructors”TraceEventEntry(TimeSpan, TraceEventCategory, string, string, int)
Section titled “TraceEventEntry(TimeSpan, TraceEventCategory, string, string, int)”A single traced runtime event captured from the EventPipe session.
Parameters:
Timestamp(TimeSpan): Elapsed time since the trace started.Category(TraceEventCategory): The event category (JIT, GC, Loader, etc.).EventName(String): Name of the event (e.g.,MethodJittingStarted).Detail(String): Human-readable description of the event payload.MetadataToken(Int32): Metadata token associated with the event, or 0 if not applicable.
public TraceEventEntry(TimeSpan Timestamp, TraceEventCategory Category, string EventName, string Detail, int MetadataToken = 0)Properties
Section titled “Properties”Category
Section titled “Category”The event category (JIT, GC, Loader, etc.).
Returns: TraceEventCategory
public TraceEventCategory Category { get; init; }Detail
Section titled “Detail”Human-readable description of the event payload.
Returns: String
public string Detail { get; init; }EventName
Section titled “EventName”Name of the event (e.g., MethodJittingStarted).
Returns: String
public string EventName { get; init; }MetadataToken
Section titled “MetadataToken”Metadata token associated with the event, or 0 if not applicable.
Returns: Int32
public int MetadataToken { get; init; }Timestamp
Section titled “Timestamp”Elapsed time since the trace started.
Returns: TimeSpan
public TimeSpan Timestamp { get; init; }Methods
Section titled “Methods”Deconstruct(out TimeSpan, out TraceEventCategory, out string, out string, out int)
Section titled “Deconstruct(out TimeSpan, out TraceEventCategory, out string, out string, out int)”Parameters:
Timestamp(TimeSpan)Category(TraceEventCategory)EventName(String)Detail(String)MetadataToken(Int32)
public void Deconstruct(out TimeSpan Timestamp, out TraceEventCategory Category, out string EventName, out string Detail, out int MetadataToken)Equals(object?)
Section titled “Equals(object?)”Parameters:
obj(Object)
Returns: Boolean
public override bool Equals(object? obj)Equals(TraceEventEntry?)
Section titled “Equals(TraceEventEntry?)”Parameters:
other(TraceEventEntry)
Returns: Boolean
public bool Equals(TraceEventEntry? other)GetHashCode()
Section titled “GetHashCode()”Returns: Int32
public override int GetHashCode()ToString()
Section titled “ToString()”Returns: String
public override string ToString()Members
Section titled “Members”operator !=(TraceEventEntry?, TraceEventEntry?)
Section titled “operator !=(TraceEventEntry?, TraceEventEntry?)”Parameters:
left(TraceEventEntry)right(TraceEventEntry)
Returns: Boolean
public static bool operator !=(TraceEventEntry? left, TraceEventEntry? right)operator ==(TraceEventEntry?, TraceEventEntry?)
Section titled “operator ==(TraceEventEntry?, TraceEventEntry?)”Parameters:
left(TraceEventEntry)right(TraceEventEntry)
Returns: Boolean
public static bool operator ==(TraceEventEntry? left, TraceEventEntry? right)