Table of Contents

Class ProfilingKey

Namespace
Stride.Core.Diagnostics
Assembly
Stride.Core.dll

A key to identify a specific profile.

public class ProfilingKey
Inheritance
object
ProfilingKey
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

parent ProfilingKey

The parent profile key.

name string

Name of the profile.

flags ProfilingKeyFlags

The profiling options for this key.

Exceptions

ArgumentNullException

Thrown when parent is set to null.

ProfilingKey(string, ProfilingKeyFlags)

Initializes a new instance of the ProfilingKey class.

public ProfilingKey(string name, ProfilingKeyFlags flags = ProfilingKeyFlags.None)

Parameters

name string

The name.

flags ProfilingKeyFlags

The profiling options for this key.

Properties

Children

List of child profile keys.

public List<ProfilingKey> Children { get; }

Property Value

List<ProfilingKey>

Name

Gets the name.

public string Name { get; }

Property Value

string

Parent

Gets the group.

public ProfilingKey? Parent { get; }

Property Value

ProfilingKey

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.