scripts
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Profiling
|
||||
{
|
||||
// Token: 0x020000FB RID: 251
|
||||
[UsedByNativeCode]
|
||||
public sealed class Recorder
|
||||
{
|
||||
// Token: 0x0600121C RID: 4636 RVA: 0x000181A0 File Offset: 0x000163A0
|
||||
internal Recorder()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0600121D RID: 4637 RVA: 0x000181AC File Offset: 0x000163AC
|
||||
~Recorder()
|
||||
{
|
||||
if (this.m_Ptr != IntPtr.Zero)
|
||||
{
|
||||
this.DisposeNative();
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600121E RID: 4638 RVA: 0x000181F4 File Offset: 0x000163F4
|
||||
public static Recorder Get(string samplerName)
|
||||
{
|
||||
Sampler sampler = Sampler.Get(samplerName);
|
||||
return sampler.GetRecorder();
|
||||
}
|
||||
|
||||
// Token: 0x1700038E RID: 910
|
||||
// (get) Token: 0x0600121F RID: 4639 RVA: 0x00018218 File Offset: 0x00016418
|
||||
public bool isValid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Ptr != IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001220 RID: 4640
|
||||
[ThreadAndSerializationSafe]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void DisposeNative();
|
||||
|
||||
// Token: 0x1700038F RID: 911
|
||||
// (get) Token: 0x06001221 RID: 4641
|
||||
// (set) Token: 0x06001222 RID: 4642
|
||||
[ThreadAndSerializationSafe]
|
||||
public extern bool enabled
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000390 RID: 912
|
||||
// (get) Token: 0x06001223 RID: 4643
|
||||
[ThreadAndSerializationSafe]
|
||||
public extern long elapsedNanoseconds
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000391 RID: 913
|
||||
// (get) Token: 0x06001224 RID: 4644
|
||||
[ThreadAndSerializationSafe]
|
||||
public extern int sampleBlockCount
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x04000244 RID: 580
|
||||
internal IntPtr m_Ptr;
|
||||
|
||||
// Token: 0x04000245 RID: 581
|
||||
internal static Recorder s_InvalidRecorder = new Recorder();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user