docs.unity3d.com
    Show / Hide Table of Contents

    Class ProfilingUtility

    Inheritance
    Object
    ProfilingUtility
    Namespace: Unity.VisualScripting
    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
    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