Struct ProfilingEvent
- Namespace
 - Stride.Core.Diagnostics
 
- Assembly
 - Stride.Core.dll
 
A profiling event generated by Profiler.
public readonly struct ProfilingEvent
  - Inherited Members
 
Constructors
ProfilingEvent(int, ProfilingKey, ProfilingMessageType, TimeSpan, TimeSpan, int, ProfilingEventMessage?, TagList)
Initializes a new instance of the ProfilingEvent struct.
public ProfilingEvent(int profileId, ProfilingKey profilingKey, ProfilingMessageType profilingType, TimeSpan timeStamp, TimeSpan elapsedTime, int threadId, ProfilingEventMessage? message, TagList attributes)
  Parameters
profileIdintThe profile identifier.
profilingKeyProfilingKeyThe profiling key.
profilingTypeProfilingMessageTypeType of the profiling.
timeStampTimeSpanelapsedTimeTimeSpanThe elapsed time.
threadIdintmessageProfilingEventMessage?The message.
attributesTagListThe attributes.
Fields
Attributes
The attributes
public readonly TagList Attributes
  Field Value
ElapsedTime
The elapsed time since Begin event.
public readonly TimeSpan ElapsedTime
  Field Value
Id
The unique identifier.
public readonly int Id
  Field Value
Key
The profile key.
public readonly ProfilingKey Key
  Field Value
Message
The message.
public readonly ProfilingEventMessage? Message
  Field Value
ThreadId
The thread id.
public readonly int ThreadId
  Field Value
TimeStamp
The timestamp.
public readonly TimeSpan TimeStamp
  Field Value
Type
The type of the profile.
public readonly ProfilingMessageType Type
  Field Value
Methods
IsGPUEvent()
public bool IsGPUEvent()