Skip to content

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>

ObjectTraceEventEntry

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)

The event category (JIT, GC, Loader, etc.).

Returns: TraceEventCategory

public TraceEventCategory Category { get; init; }

Human-readable description of the event payload.

Returns: String

public string Detail { get; init; }

Name of the event (e.g., MethodJittingStarted).

Returns: String

public string EventName { get; init; }

Metadata token associated with the event, or 0 if not applicable.

Returns: Int32

public int MetadataToken { get; init; }

Elapsed time since the trace started.

Returns: TimeSpan

public TimeSpan Timestamp { get; init; }

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:

public void Deconstruct(out TimeSpan Timestamp, out TraceEventCategory Category, out string EventName, out string Detail, out int MetadataToken)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Parameters:

Returns: Boolean

public bool Equals(TraceEventEntry? other)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

operator !=(TraceEventEntry?, TraceEventEntry?)

Section titled “operator !=(TraceEventEntry?, TraceEventEntry?)”

Parameters:

Returns: Boolean

public static bool operator !=(TraceEventEntry? left, TraceEventEntry? right)

operator ==(TraceEventEntry?, TraceEventEntry?)

Section titled “operator ==(TraceEventEntry?, TraceEventEntry?)”

Parameters:

Returns: Boolean

public static bool operator ==(TraceEventEntry? left, TraceEventEntry? right)