docs.unity.cn
    Show / Hide Table of Contents

    Struct DiagnosticEvent

    Diagnostic event data.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.ResourceManagement.Diagnostics
    Syntax
    [Serializable]
    public struct DiagnosticEvent

    Constructors

    DiagnosticEvent(String, String, Int32, Int32, Int32, Int32, Int32[])

    DiagnosticEvent constructor

    Declaration
    public DiagnosticEvent(string graph, string name, int id, int stream, int frame, int value, int[] deps)
    Parameters
    Type Name Description
    String graph

    Graph id.

    String name

    Event name.

    Int32 id

    Event id.

    Int32 stream

    Stream index.

    Int32 frame

    Frame number.

    Int32 value

    Event value.

    Int32[] deps

    Array of dependency event ids.

    Properties

    Dependencies

    Array of object identifiers that are dependencies for this event

    Declaration
    public int[] Dependencies { get; }
    Property Value
    Type Description
    Int32[]

    DisplayName

    Display name for event

    Declaration
    public string DisplayName { get; }
    Property Value
    Type Description
    String

    Frame

    The frame that the event occurred

    Declaration
    public int Frame { get; }
    Property Value
    Type Description
    Int32

    Frame number

    Graph

    Gets the graph id that this event is intended for

    Declaration
    public string Graph { get; }
    Property Value
    Type Description
    String

    The graph Id

    ObjectId

    Unique object identifier for this event

    Declaration
    public int ObjectId { get; }
    Property Value
    Type Description
    Int32

    Stream

    The stream id for the event. Each graph may display multiple streams of data for the same event Id

    Declaration
    public int Stream { get; }
    Property Value
    Type Description
    Int32

    Stream Id

    Value

    The value of the event. This value depends on the event type

    Declaration
    public int Value { get; }
    Property Value
    Type Description
    Int32

    Event value

    Methods

    Deserialize(Byte[])

    Deserializes event from a byte array created by the UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.Serialize method

    Declaration
    public static DiagnosticEvent Deserialize(byte[] data)
    Parameters
    Type Name Description
    Byte[] data

    Serialized data

    Returns
    Type Description
    DiagnosticEvent

    Deserialized DiagnosticEvent struct

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on 04 November 2021
    Terms of use