Tanoda
Leap.Unity.ProfilerSample Struct Reference

A utility struct for ease of use when you want to wrap a piece of code in a Profiler.BeginSample/EndSample. Usage: More...

Inheritance diagram for Leap.Unity.ProfilerSample:

Public Member Functions

 ProfilerSample (string sampleName)
 
 ProfilerSample (string sampleName, UnityEngine.Object obj)
 
void Dispose ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ProfilerSample() [1/2]

Leap.Unity.ProfilerSample.ProfilerSample ( string  sampleName)

Definition at line 25 of file ProfilerSample.cs.

◆ ProfilerSample() [2/2]

Leap.Unity.ProfilerSample.ProfilerSample ( string  sampleName,
UnityEngine.Object  obj 
)

Definition at line 29 of file ProfilerSample.cs.

Member Function Documentation

◆ Dispose()

void Leap.Unity.ProfilerSample.Dispose ( )

Definition at line 33 of file ProfilerSample.cs.


The documentation for this struct was generated from the following file: