Class ProfileData | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ProfileData

    Inheritance
    System.Object
    ProfileData
    Namespace: UnityEditor.Performance.ProfileAnalyzer
    Syntax
    [Serializable]
    public class ProfileData

    Constructors

    ProfileData()

    Declaration
    public ProfileData()

    ProfileData(BinaryReader)

    Declaration
    public ProfileData(BinaryReader reader)
    Parameters
    Type Name Description
    System.IO.BinaryReader reader

    Properties

    Version

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

    Methods

    Add(ProfileFrame)

    Declaration
    public void Add(ProfileFrame frame)
    Parameters
    Type Name Description
    ProfileFrame frame

    AddMarkerName(String, ProfileMarker)

    Declaration
    public void AddMarkerName(string markerName, ProfileMarker marker)
    Parameters
    Type Name Description
    System.String markerName
    ProfileMarker marker

    AddThreadName(String, ProfileThread)

    Declaration
    public void AddThreadName(string threadName, ProfileThread thread)
    Parameters
    Type Name Description
    System.String threadName
    ProfileThread thread

    CorrectThreadName(String)

    Declaration
    public static string CorrectThreadName(string threadNameWithIndex)
    Parameters
    Type Name Description
    System.String threadNameWithIndex
    Returns
    Type Description
    System.String

    DisplayFrameToOffset(Int32)

    Declaration
    public int DisplayFrameToOffset(int displayFrame)
    Parameters
    Type Name Description
    System.Int32 displayFrame
    Returns
    Type Description
    System.Int32

    Finalise()

    Declaration
    public void Finalise()

    GetFrame(Int32)

    Declaration
    public ProfileFrame GetFrame(int offset)
    Parameters
    Type Name Description
    System.Int32 offset
    Returns
    Type Description
    ProfileFrame

    GetFrameCount()

    Declaration
    public int GetFrameCount()
    Returns
    Type Description
    System.Int32

    GetMarkerIndex(String)

    Declaration
    public int GetMarkerIndex(string markerName)
    Parameters
    Type Name Description
    System.String markerName
    Returns
    Type Description
    System.Int32

    GetMarkerName(ProfileMarker)

    Declaration
    public string GetMarkerName(ProfileMarker marker)
    Parameters
    Type Name Description
    ProfileMarker marker
    Returns
    Type Description
    System.String

    GetThreadName(ProfileThread)

    Declaration
    public string GetThreadName(ProfileThread thread)
    Parameters
    Type Name Description
    ProfileThread thread
    Returns
    Type Description
    System.String

    GetThreadNames()

    Declaration
    public List<string> GetThreadNames()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    GetThreadNameWithGroup(String, String)

    Declaration
    public static string GetThreadNameWithGroup(string threadName, string groupName)
    Parameters
    Type Name Description
    System.String threadName
    System.String groupName
    Returns
    Type Description
    System.String

    GetThreadNameWithoutGroup(String, out String)

    Declaration
    public static string GetThreadNameWithoutGroup(string threadNameWithGroup, out string groupName)
    Parameters
    Type Name Description
    System.String threadNameWithGroup
    System.String groupName
    Returns
    Type Description
    System.String

    IsSame(ProfileData)

    Declaration
    public bool IsSame(ProfileData other)
    Parameters
    Type Name Description
    ProfileData other
    Returns
    Type Description
    System.Boolean

    Load(String, out ProfileData)

    Declaration
    public static bool Load(string filename, out ProfileData data)
    Parameters
    Type Name Description
    System.String filename
    ProfileData data
    Returns
    Type Description
    System.Boolean

    OffsetToDisplayFrame(Int32)

    Declaration
    public int OffsetToDisplayFrame(int offset)
    Parameters
    Type Name Description
    System.Int32 offset
    Returns
    Type Description
    System.Int32

    Save(String, ProfileData)

    Declaration
    public static bool Save(string filename, ProfileData data)
    Parameters
    Type Name Description
    System.String filename
    ProfileData data
    Returns
    Type Description
    System.Boolean

    SetFrameIndexOffset(Int32)

    Declaration
    public void SetFrameIndexOffset(int offset)
    Parameters
    Type Name Description
    System.Int32 offset

    ThreadNameWithIndex(Int32, String)

    Declaration
    public static string ThreadNameWithIndex(int index, string threadName)
    Parameters
    Type Name Description
    System.Int32 index
    System.String threadName
    Returns
    Type Description
    System.String

    Write(BinaryWriter)

    Declaration
    public void Write(BinaryWriter writer)
    Parameters
    Type Name Description
    System.IO.BinaryWriter writer
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023