docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReportMetricAsync

    ReportMetricAsync(MetricDefinition)

    Start an async metric for reporting metric values for this frame in a subsequent frame.

    Declaration
    public AsyncMetric ReportMetricAsync(MetricDefinition metricDefinition)
    Parameters
    Type Name Description
    MetricDefinition metricDefinition

    The MetricDefinition of the metric

    Returns
    Type Description
    AsyncMetric

    An AsyncMetric which should be used to report the metric values, potentially in a later frame

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if ShouldCaptureThisFrame is false

    In This Article
    Back to top
    Copyright © 2024 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)