Skip to content

Class TraceEvent

Definition

Namespace: StardewUI.Framework.Diagnostics
Assembly: StardewUI.dll

Defines a single trace event.

public record TraceEvent : 
    IEquatable<StardewUI.Framework.Diagnostics.TraceEvent>

Inheritance
Object ⇦ TraceEvent

Implements
IEquatable<TraceEvent>

Remarks

StardewUI uses only evented profiles, so the data is either for an OpenFrameEvent or CloseFrameEvent.

Members

Constructors

Name Description
TraceEvent(Char, Int64, Int32) Defines a single trace event.

Properties

Name Description
At Time when the event was logged, in the profile's Unit (i.e. in microseconds for any StardewUI event).
EqualityContract
Frame Index into the Frames identifying which frame this event refers to. Used to correlate open and close events.
Type Discriminator for the event type; 'O' for open frame or 'C' for close.

Details

Constructors

TraceEvent(char, long, int)

Defines a single trace event.

public TraceEvent(char Type, long At, int Frame);
Parameters

Type   Char
Discriminator for the event type; 'O' for open frame or 'C' for close.

At   Int64
Time when the event was logged, in the profile's Unit (i.e. in microseconds for any StardewUI event).

Frame   Int32
Index into the Frames identifying which frame this event refers to. Used to correlate open and close events.

Remarks

StardewUI uses only evented profiles, so the data is either for an OpenFrameEvent or CloseFrameEvent.


Properties

At

Time when the event was logged, in the profile's Unit (i.e. in microseconds for any StardewUI event).

public long At { get; set; }
Property Value

Int64


EqualityContract

protected System.Type EqualityContract { get; }
Property Value

Type


Frame

Index into the Frames identifying which frame this event refers to. Used to correlate open and close events.

public int Frame { get; set; }
Property Value

Int32


Type

Discriminator for the event type; 'O' for open frame or 'C' for close.

public char Type { get; set; }
Property Value

Char