Tanoda
|
A utility struct for ease of use when you want to wrap a piece of code in a Profiler.BeginSample/EndSample. Usage: More...
Public Member Functions | |
ProfilerSample (string sampleName) | |
ProfilerSample (string sampleName, UnityEngine.Object obj) | |
void | Dispose () |
A utility struct for ease of use when you want to wrap a piece of code in a Profiler.BeginSample/EndSample. Usage:
using(new ProfilerSample("Sample Name")) { code you want to profile }
Definition at line 23 of file ProfilerSample.cs.
Leap.Unity.ProfilerSample.ProfilerSample | ( | string | sampleName | ) |
Definition at line 25 of file ProfilerSample.cs.
Leap.Unity.ProfilerSample.ProfilerSample | ( | string | sampleName, |
UnityEngine.Object | obj | ||
) |
Definition at line 29 of file ProfilerSample.cs.
void Leap.Unity.ProfilerSample.Dispose | ( | ) |
Definition at line 33 of file ProfilerSample.cs.