docs.unity3d.com
    Show / Hide Table of Contents

    Class PerformanceAttribute

    Test attribute to specify a performance test. It will add category "Performance" to test properties.

    Inheritance
    Object
    PerformanceAttribute
    Namespace: Unity.PerformanceTesting
    Syntax
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
    public class PerformanceAttribute : CategoryAttribute, IOuterUnityTestAction

    Constructors

    PerformanceAttribute()

    Adds performance attribute to a test method.

    Declaration
    public PerformanceAttribute()

    Methods

    AfterTest(ITest)

    Executed after a test execution.

    Declaration
    public IEnumerator AfterTest(ITest test)
    Parameters
    Type Name Description
    ITest test

    Executed test.

    Returns
    Type Description
    IEnumerator

    BeforeTest(ITest)

    Executed before a test execution.

    Declaration
    public IEnumerator BeforeTest(ITest test)
    Parameters
    Type Name Description
    ITest test

    Test to execute.

    Returns
    Type Description
    IEnumerator
    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