docs.unity3d.com
    Show / Hide Table of Contents

    Class ProfilerMarkerExtension

    Provides an extension to the ProfilerMarker API to accommodate a single additional parameter to the Begin method.

    Inheritance
    Object
    ProfilerMarkerExtension
    Namespace: Unity.Profiling
    Syntax
    public static class ProfilerMarkerExtension : object

    Methods

    Begin(ProfilerMarker, Double)

    Begin profiling a piece of code marked with the ProfilerMarker instance.

    Declaration
    public static void Begin(this ProfilerMarker marker, double metadata)
    Parameters
    Type Name Description
    ProfilerMarker marker

    ProfilerMarker instance.

    Double metadata

    ''double'' parameter.

    Remarks

    Does nothing in Release Players.

    Begin(ProfilerMarker, Int32)

    Begin profiling a piece of code marked with the ProfilerMarker instance.

    Declaration
    public static void Begin(this ProfilerMarker marker, int metadata)
    Parameters
    Type Name Description
    ProfilerMarker marker

    ProfilerMarker instance.

    Int32 metadata

    ''int'' parameter.

    Remarks

    Does nothing in Release Players.

    Begin(ProfilerMarker, Int64)

    Begin profiling a piece of code marked with the ProfilerMarker instance.

    Declaration
    public static void Begin(this ProfilerMarker marker, long metadata)
    Parameters
    Type Name Description
    ProfilerMarker marker

    ProfilerMarker instance.

    Int64 metadata

    ''long'' parameter.

    Remarks

    Does nothing in Release Players.

    Begin(ProfilerMarker, Single)

    Begin profiling a piece of code marked with the ProfilerMarker instance.

    Declaration
    public static void Begin(this ProfilerMarker marker, float metadata)
    Parameters
    Type Name Description
    ProfilerMarker marker

    ProfilerMarker instance.

    Single metadata

    ''float'' parameter.

    Remarks

    Does nothing in Release Players.

    Begin(ProfilerMarker, String)

    Begin profiling a piece of code marked with the ProfilerMarker instance.

    Declaration
    public static void Begin(this ProfilerMarker marker, string metadata)
    Parameters
    Type Name Description
    ProfilerMarker marker

    ProfilerMarker instance.

    String metadata

    ''string'' parameter.

    Remarks

    Does nothing in Release Players.

    Begin(ProfilerMarker, UInt32)

    Begin profiling a piece of code marked with the ProfilerMarker instance.

    Declaration
    public static void Begin(this ProfilerMarker marker, uint metadata)
    Parameters
    Type Name Description
    ProfilerMarker marker

    ProfilerMarker instance.

    UInt32 metadata

    ''uint'' parameter.

    Remarks

    Does nothing in Release Players.

    Begin(ProfilerMarker, UInt64)

    Begin profiling a piece of code marked with the ProfilerMarker instance.

    Declaration
    public static void Begin(this ProfilerMarker marker, ulong metadata)
    Parameters
    Type Name Description
    ProfilerMarker marker

    ProfilerMarker instance.

    UInt64 metadata

    ''ulong'' parameter.

    Remarks

    Does nothing in Release Players.

    In This Article
    • Methods
      • Begin(ProfilerMarker, Double)
      • Begin(ProfilerMarker, Int32)
      • Begin(ProfilerMarker, Int64)
      • Begin(ProfilerMarker, Single)
      • Begin(ProfilerMarker, String)
      • Begin(ProfilerMarker, UInt32)
      • Begin(ProfilerMarker, UInt64)
    Back to top
    Terms of use
    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