forked from MattRix/UnityDecompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecorder.cs
More file actions
71 lines (61 loc) · 1.33 KB
/
Copy pathRecorder.cs
File metadata and controls
71 lines (61 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using System;
using System.Runtime.CompilerServices;
using UnityEngine.Scripting;
namespace UnityEngine.Profiling
{
[UsedByNativeCode]
public sealed class Recorder
{
internal IntPtr m_Ptr;
internal static Recorder s_InvalidRecorder = new Recorder();
public bool isValid
{
get
{
return this.m_Ptr != IntPtr.Zero;
}
}
[ThreadAndSerializationSafe]
public extern bool enabled
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
[ThreadAndSerializationSafe]
public extern long elapsedNanoseconds
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
[ThreadAndSerializationSafe]
public extern int sampleBlockCount
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
internal Recorder()
{
}
~Recorder()
{
if (this.m_Ptr != IntPtr.Zero)
{
this.DisposeNative();
}
}
public static Recorder Get(string samplerName)
{
Sampler sampler = Sampler.Get(samplerName);
return sampler.GetRecorder();
}
[GeneratedByOldBindingsGenerator, ThreadAndSerializationSafe]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void DisposeNative();
}
}