Struct ProfilerScope
Performs a Profiler.BeginSample
call on construction, and Profiler.EndSample
on disposal.
public struct ProfilerScope : IDisposable
- Implements
- Inherited Members
Constructors
ProfilerScope(string, Object?)
public ProfilerScope(string name, UnityEngine.Object? target = null)
Parameters
name
stringtarget
UnityEngine.Object?
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()