Table of Contents

Struct ProfilerScope

Namespace
nadena.dev.ndmf

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 string
target UnityEngine.Object?

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()