Class ProfilingSampler
Wrapper around CPU and GPU profiling samplers. Use this along ProfilingScope to profile a piece of code.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[IgnoredByDeepProfiler]
public class ProfilingSampler
Constructors
Name | Description |
---|---|
Profiling |
Constructor. |
Properties
Name | Description |
---|---|
cpu |
CPU Elapsed time in milliseconds (Command Buffer execution). |
cpu |
Number of times the Profiling Sampler has hit on the CPU in the command buffer. |
enable |
Set to true to enable recording of profiling sampler timings. |
gpu |
GPU Elapsed time in milliseconds. |
gpu |
Number of times the Profiling Sampler has hit on the GPU |
inline |
CPU Elapsed time in milliseconds (Direct execution). |
inline |
Number of times the Profiling Sampler has hit on the CPU. |
name | Name of the Profiling Sampler |
Methods
Name | Description |
---|---|
Begin(Command |
Begin the profiling block. |
End(Command |
End the profiling block. |
Get<TEnum>(TEnum) | Get the sampler for the corresponding enumeration value. |