Class Measure | Performance testing API | 2.2.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class Measure

    Inheritance
    Object
    Measure
    Namespace: Unity.PerformanceTesting
    Syntax
    public static class Measure

    Methods

    Custom(String, Double)

    Declaration
    public static void Custom(string name, double value)
    Parameters
    Type Name Description
    String name
    Double value

    Custom(SampleGroup, Double)

    Declaration
    public static void Custom(SampleGroup sampleGroup, double value)
    Parameters
    Type Name Description
    SampleGroup sampleGroup
    Double value

    Frames()

    Declaration
    public static FramesMeasurement Frames()
    Returns
    Type Description
    FramesMeasurement

    Method(Action)

    Declaration
    public static MethodMeasurement Method(Action action)
    Parameters
    Type Name Description
    Action action
    Returns
    Type Description
    MethodMeasurement

    ProfilerMarkers(String[])

    Declaration
    public static ProfilerMeasurement ProfilerMarkers(params string[] profilerMarkerLabels)
    Parameters
    Type Name Description
    String[] profilerMarkerLabels
    Returns
    Type Description
    ProfilerMeasurement

    Scope(String)

    Declaration
    public static ScopeMeasurement Scope(string name = "Time")
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    ScopeMeasurement
    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