docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ProfilingScope

    Scoped Profiling markers

    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
    [IgnoredByDeepProfiler]
    public struct ProfilingScope : IDisposable

    Constructors

    ProfilingScope(BaseCommandBuffer, ProfilingSampler)

    Profiling Scope constructor

    Declaration
    public ProfilingScope(BaseCommandBuffer cmd, ProfilingSampler sampler)
    Parameters
    Type Name Description
    BaseCommandBuffer cmd

    Command buffer used to add markers and compute execution timings.

    ProfilingSampler sampler

    Profiling Sampler to be used for this scope.

    ProfilingScope(CommandBuffer, ProfilingSampler)

    Profiling Scope constructor

    Declaration
    public ProfilingScope(CommandBuffer cmd, ProfilingSampler sampler)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer used to add markers and compute execution timings.

    ProfilingSampler sampler

    Profiling Sampler to be used for this scope.

    ProfilingScope(ProfilingSampler)

    Profiling Scope constructor

    Declaration
    public ProfilingScope(ProfilingSampler sampler)
    Parameters
    Type Name Description
    ProfilingSampler sampler

    Profiling Sampler to be used for this scope.

    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)