ProfilingMessage Class
Namespace: Stride.Core.DiagnosticsAssembly: Stride.Core.dll
A log message generate by Profiler.
public class ProfilingMessage : LogMessage, ILogMessage
Name | Description | |
---|---|---|
Constructors | ||
ProfilingMessage(Int32, ProfilingKey, ProfilingMessageType) | Initializes a new instance of the ProfilingMessage class. |
|
ProfilingMessage(Int32, ProfilingKey, ProfilingMessageType, String) | Initializes a new instance of the ProfilingMessage class. |
|
Properties | ||
Attributes | Gets attributes attached to this message. May be null. |
|
ElapsedTime | Gets or sets the time elapsed for this particular profile. |
|
Id | Gets or sets the unique identifier associated with this profile message. |
|
Key | Gets or sets the profile key. |
|
ProfilingType | Gets the type of the profile. |
|
Methods | ||
ToString() |
Constructors
ProfilingMessage(Int32, ProfilingKey, ProfilingMessageType)
Initializes a new instance of the ProfilingMessage class.
public ProfilingMessage(int profileId, ProfilingKey profilingKey, ProfilingMessageType profilingType)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | profileId | The profile unique identifier. |
ProfilingKey | profilingKey | The profile key. |
ProfilingMessageType | profilingType | Type of the profile. |
ProfilingMessage(Int32, ProfilingKey, ProfilingMessageType, String)
Initializes a new instance of the ProfilingMessage class.
public ProfilingMessage(int profileId, ProfilingKey profilingKey, ProfilingMessageType profilingType, string text)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | profileId | The profile unique identifier. |
ProfilingKey | profilingKey | The profile key. |
ProfilingMessageType | profilingType | Type of the profile. |
System.String | text | The text. |
Properties
Attributes
Gets attributes attached to this message. May be null.
public Dictionary<object, object> Attributes { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.Object, System.Object> | The properties. |
ElapsedTime
Gets or sets the time elapsed for this particular profile.
public TimeSpan ElapsedTime { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The elapsed. |
Id
Gets or sets the unique identifier associated with this profile message.
public int Id { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The unique identifier. |
Key
Gets or sets the profile key.
public ProfilingKey Key { get; }
Property Value
Type | Description |
---|---|
ProfilingKey | The profile key. |
ProfilingType
Gets the type of the profile.
public ProfilingMessageType ProfilingType { get; }
Property Value
Type | Description |
---|---|
ProfilingMessageType | The type of the profile. |
Methods
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |