Tanoda
ProfilerSample.cs
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) Ultraleap, Inc. 2011-2020. *
3
* *
4
* Use subject to the terms of the Apache License 2.0 available at *
5
* http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6
* between Ultraleap and you, your company or other organization. *
7
******************************************************************************/
8
9
using
System;
10
using
UnityEngine
.Profiling;
11
12
namespace
Leap.Unity
{
13
23
public
struct
ProfilerSample
: IDisposable {
24
25
public
ProfilerSample
(
string
sampleName) {
26
Profiler.BeginSample(sampleName);
27
}
28
29
public
ProfilerSample
(
string
sampleName,
UnityEngine
.Object obj) {
30
Profiler.BeginSample(sampleName, obj);
31
}
32
33
public
void
Dispose
() {
34
Profiler.EndSample();
35
}
36
}
37
}
Leap.Unity
Definition:
AssetFolderPropertyDrawer.cs:15
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Leap.Unity.ProfilerSample
A utility struct for ease of use when you want to wrap a piece of code in a Profiler....
Definition:
ProfilerSample.cs:23
Leap.Unity.ProfilerSample.ProfilerSample
ProfilerSample(string sampleName)
Definition:
ProfilerSample.cs:25
Leap.Unity.ProfilerSample.ProfilerSample
ProfilerSample(string sampleName, UnityEngine.Object obj)
Definition:
ProfilerSample.cs:29
Leap.Unity.ProfilerSample.Dispose
void Dispose()
Definition:
ProfilerSample.cs:33
Source
Assets
Plugins
LeapMotion
Core
Scripts
Utils
ProfilerSample.cs
Generated by
1.9.3