docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProfilingUtility

    Inheritance
    object
    ProfilingUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.VisualScripting
    Assembly: Unity.VisualScripting.Core.dll
    Syntax
    public static class ProfilingUtility

    Properties

    currentSegment

    Declaration
    public static ProfiledSegment currentSegment { get; set; }
    Property Value
    Type Description
    ProfiledSegment

    rootSegment

    Declaration
    public static ProfiledSegment rootSegment { get; }
    Property Value
    Type Description
    ProfiledSegment

    Methods

    BeginSample(string)

    Declaration
    [Conditional("ENABLE_PROFILER")]
    public static void BeginSample(string name)
    Parameters
    Type Name Description
    string name

    Clear()

    Declaration
    [Conditional("ENABLE_PROFILER")]
    public static void Clear()

    EndSample()

    Declaration
    [Conditional("ENABLE_PROFILER")]
    public static void EndSample()

    SampleBlock(string)

    Declaration
    public static ProfilingScope SampleBlock(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    ProfilingScope
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)