Struct ProfilingEvent
- Namespace
- Stride.Core.Diagnostics
- Assembly
- Stride.Core.dll
A profiling event generated by Profiler.
public 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
profileId
intThe profile identifier.
profilingKey
ProfilingKeyThe profiling key.
profilingType
ProfilingMessageTypeType of the profiling.
timeStamp
TimeSpanelapsedTime
TimeSpanThe elapsed time.
threadId
intmessage
ProfilingEventMessage?attributes
TagListThe 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()