Struct ProfilingSample | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct ProfilingSample

    Profiling Sampler class.

    Namespace: UnityEngine.Rendering
    Syntax
    [Obsolete("Please use ProfilingScope")]
    public struct ProfilingSample : IDisposable

    Constructors

    ProfilingSample(CommandBuffer, String, CustomSampler)

    Constructor

    Declaration
    public ProfilingSample(CommandBuffer cmd, string name, CustomSampler sampler = null)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command Buffer.

    String name

    Name of the profiling sample.

    CustomSampler sampler

    Custom sampler for CPU profiling.

    ProfilingSample(CommandBuffer, String, Object)

    Constructor

    Declaration
    public ProfilingSample(CommandBuffer cmd, string format, object arg)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command Buffer.

    String format

    Formating of the profiling sample.

    Object arg

    Parameters for formating the name.

    ProfilingSample(CommandBuffer, String, Object[])

    Constructor.

    Declaration
    public ProfilingSample(CommandBuffer cmd, string format, params object[] args)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command Buffer.

    String format

    Formating of the profiling sample.

    Object[] args

    Parameters for formating the name.

    Methods

    Dispose()

    Dispose pattern implementation

    Declaration
    public void Dispose()
    In This Article
    • Constructors
      • ProfilingSample(CommandBuffer, String, CustomSampler)
      • ProfilingSample(CommandBuffer, String, Object)
      • ProfilingSample(CommandBuffer, String, Object[])
    • Methods
      • Dispose()
    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