docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ProfilingSample

    Profiling Sampler class.

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    [Obsolete("Please use ProfilingScope")]
    [IgnoredByDeepProfiler]
    public struct ProfilingSample : IDisposable

    Constructors

    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, params 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.

    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.

    Methods

    Dispose()

    Dispose pattern implementation

    Declaration
    public void Dispose()

    Implements

    IDisposable

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    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)