docs.unity.cn
    Show / Hide Table of Contents

    Struct ProfilingSample

    Profiling Sampler class.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Rendering
    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, 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.Dispose()

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023