Skip to content

Class TraceProfile

Definition

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

A single profile in a trace.

public class TraceProfile

Inheritance
Object ⇦ TraceProfile

Remarks

For speedscope purposes, this is always an "EventedProfile". StardewUI does not use sampled profiles.

Members

Constructors

Name Description
TraceProfile(string, Int64) A single profile in a trace.

Properties

Name Description
EndValue The timestamp when tracing ended, in the specified Unit.
Events The events recorded for this profile.
Name Name of the profile. Used to identify the thread.
StartValue The timestamp when tracing was started, in the specified Unit.
Type Discriminator for the profile type. In StardewUI, this is always evented.
Unit Unit of measurement for all time values.

Details

Constructors

TraceProfile(string, long)

A single profile in a trace.

public TraceProfile(string name, long startValue);
Parameters

name   string
The Name of the profile, used to identify the thread.

startValue   Int64
The timestamp when tracing was started, in the specified Unit (default: microseconds).

Remarks

For speedscope purposes, this is always an "EventedProfile". StardewUI does not use sampled profiles.


Properties

EndValue

The timestamp when tracing ended, in the specified Unit.

public long EndValue { get; set; }
Property Value

Int64


Events

The events recorded for this profile.

public System.Collections.Generic.List<StardewUI.Framework.Diagnostics.TraceEvent> Events { get; }
Property Value

List<TraceEvent>


Name

Name of the profile. Used to identify the thread.

public string Name { get; set; }
Property Value

string


StartValue

The timestamp when tracing was started, in the specified Unit.

public long StartValue { get; set; }
Property Value

Int64


Type

Discriminator for the profile type. In StardewUI, this is always evented.

public string Type { get; }
Property Value

string


Unit

Unit of measurement for all time values.

public string Unit { get; }
Property Value

string

Remarks

StardewUI's traces are always measured in microseconds.