Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ProfilingMessage Class

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

    A log message generate by Profiler.

    System.Object → LogMessage → ProfilingMessage
    Derived from ProfilingMessage:

    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()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    Methods


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    LogMessage.ToString()

    Inherited Members

    LogMessage.Module
    LogMessage.Type
    LogMessage.Text
    LogMessage.Exception
    LogMessage.CallerInfo
    LogMessage.ExceptionInfo

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    LogMessageExtensions.IsDebug(ILogMessage)
    LogMessageExtensions.IsVerbose(ILogMessage)
    LogMessageExtensions.IsInfo(ILogMessage)
    LogMessageExtensions.IsWarning(ILogMessage)
    LogMessageExtensions.IsError(ILogMessage)
    LogMessageExtensions.IsFatal(ILogMessage)
    LogMessageExtensions.IsAtLeast(ILogMessage, LogMessageType)
    LogMessageExtensions.IsAtMost(ILogMessage, LogMessageType)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation