docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ProfilerMeasurement

    Provides a way to measure profiler markers.

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.PerformanceTesting.Measurements
    Assembly: Unity.PerformanceTesting.dll
    Syntax
    public struct ProfilerMeasurement : IDisposable

    Constructors

    ProfilerMeasurement(string[])

    Initializes a profiler marker measurement.

    Declaration
    public ProfilerMeasurement(string[] profilerMarkers)
    Parameters
    Type Name Description
    string[] profilerMarkers

    List of profiler markers to be measured.

    ProfilerMeasurement(SampleGroup[])

    Initializes a profiler marker measurement.

    Declaration
    public ProfilerMeasurement(SampleGroup[] sampleGroups)
    Parameters
    Type Name Description
    SampleGroup[] sampleGroups

    List of sample groups with name set to match profiler markers to be measured.

    Methods

    Dispose()

    Stops profiler marker measurement and adds them to the provided sample group.

    Declaration
    public void Dispose()

    Implements

    IDisposable
    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)