Class ProfilingKey
- Namespace
- Stride.Core.Diagnostics
- Assembly
- Stride.Core.dll
A key to identify a specific profile.
public class ProfilingKey
- Inheritance
-
objectProfilingKey
- Extension Methods
Constructors
ProfilingKey(ProfilingKey, string, ProfilingKeyFlags)
Initializes a new instance of the ProfilingKey class.
public ProfilingKey(ProfilingKey parent, string name, ProfilingKeyFlags flags = ProfilingKeyFlags.None)
Parameters
parentProfilingKeyThe parent profile key.
namestringName of the profile.
flagsProfilingKeyFlagsThe profiling options for this key.
Exceptions
- ArgumentNullException
Thrown when
parentis set to null.
ProfilingKey(string, ProfilingKeyFlags)
Initializes a new instance of the ProfilingKey class.
public ProfilingKey(string name, ProfilingKeyFlags flags = ProfilingKeyFlags.None)
Parameters
namestringThe name.
flagsProfilingKeyFlagsThe profiling options for this key.
Properties
Children
List of child profile keys.
public List<ProfilingKey> Children { get; }
Property Value
Name
Gets the name.
public string Name { get; }
Property Value
Parent
Gets the group.
public ProfilingKey? Parent { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.