scripts
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Profiling
|
||||
{
|
||||
// Token: 0x020000FD RID: 253
|
||||
[UsedByNativeCode]
|
||||
public sealed class CustomSampler : Sampler
|
||||
{
|
||||
// Token: 0x06001230 RID: 4656 RVA: 0x00018300 File Offset: 0x00016500
|
||||
internal CustomSampler()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06001231 RID: 4657 RVA: 0x0001830C File Offset: 0x0001650C
|
||||
public static CustomSampler Create(string name)
|
||||
{
|
||||
CustomSampler customSampler = CustomSampler.CreateInternal(name);
|
||||
return customSampler ?? CustomSampler.s_InvalidCustomSampler;
|
||||
}
|
||||
|
||||
// Token: 0x06001232 RID: 4658
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern CustomSampler CreateInternal(string name);
|
||||
|
||||
// Token: 0x06001233 RID: 4659
|
||||
[Conditional("ENABLE_PROFILER")]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public extern void Begin();
|
||||
|
||||
// Token: 0x06001234 RID: 4660 RVA: 0x00018338 File Offset: 0x00016538
|
||||
[Conditional("ENABLE_PROFILER")]
|
||||
public void Begin(Object targetObject)
|
||||
{
|
||||
this.BeginWithObject(targetObject);
|
||||
}
|
||||
|
||||
// Token: 0x06001235 RID: 4661
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern void BeginWithObject(Object targetObject);
|
||||
|
||||
// Token: 0x06001236 RID: 4662
|
||||
[Conditional("ENABLE_PROFILER")]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public extern void End();
|
||||
|
||||
// Token: 0x04000248 RID: 584
|
||||
internal static CustomSampler s_InvalidCustomSampler = new CustomSampler();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
using UnityEngine.Scripting.APIUpdating;
|
||||
|
||||
namespace UnityEngine.Profiling
|
||||
{
|
||||
// Token: 0x020000FA RID: 250
|
||||
[MovedFrom("UnityEngine")]
|
||||
public sealed class Profiler
|
||||
{
|
||||
// Token: 0x060011FD RID: 4605 RVA: 0x000180E0 File Offset: 0x000162E0
|
||||
private Profiler()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000387 RID: 903
|
||||
// (get) Token: 0x060011FE RID: 4606
|
||||
public static extern bool supported
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x17000388 RID: 904
|
||||
// (get) Token: 0x060011FF RID: 4607
|
||||
// (set) Token: 0x06001200 RID: 4608
|
||||
public static extern string logFile
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x17000389 RID: 905
|
||||
// (get) Token: 0x06001201 RID: 4609
|
||||
// (set) Token: 0x06001202 RID: 4610
|
||||
public static extern bool enableBinaryLog
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x1700038A RID: 906
|
||||
// (get) Token: 0x06001203 RID: 4611
|
||||
// (set) Token: 0x06001204 RID: 4612
|
||||
public static extern bool enabled
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x06001205 RID: 4613
|
||||
[Conditional("UNITY_EDITOR")]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void AddFramesFromFile(string file);
|
||||
|
||||
// Token: 0x06001206 RID: 4614 RVA: 0x000180EC File Offset: 0x000162EC
|
||||
[Conditional("ENABLE_PROFILER")]
|
||||
public static void BeginSample(string name)
|
||||
{
|
||||
Profiler.BeginSampleOnly(name);
|
||||
}
|
||||
|
||||
// Token: 0x06001207 RID: 4615
|
||||
[Conditional("ENABLE_PROFILER")]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void BeginSample(string name, Object targetObject);
|
||||
|
||||
// Token: 0x06001208 RID: 4616
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern void BeginSampleOnly(string name);
|
||||
|
||||
// Token: 0x06001209 RID: 4617
|
||||
[Conditional("ENABLE_PROFILER")]
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern void EndSample();
|
||||
|
||||
// Token: 0x1700038B RID: 907
|
||||
// (get) Token: 0x0600120A RID: 4618
|
||||
// (set) Token: 0x0600120B RID: 4619
|
||||
[Obsolete("maxNumberOfSamplesPerFrame is no longer needed, as the profiler buffers auto expand as needed")]
|
||||
public static extern int maxNumberOfSamplesPerFrame
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
set;
|
||||
}
|
||||
|
||||
// Token: 0x1700038C RID: 908
|
||||
// (get) Token: 0x0600120C RID: 4620
|
||||
[Obsolete("usedHeapSize has been deprecated since it is limited to 4GB. Please use usedHeapSizeLong instead.")]
|
||||
public static extern uint usedHeapSize
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x1700038D RID: 909
|
||||
// (get) Token: 0x0600120D RID: 4621
|
||||
public static extern long usedHeapSizeLong
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600120E RID: 4622 RVA: 0x000180F8 File Offset: 0x000162F8
|
||||
[Obsolete("GetRuntimeMemorySize has been deprecated since it is limited to 2GB. Please use GetRuntimeMemorySizeLong() instead.")]
|
||||
public static int GetRuntimeMemorySize(Object o)
|
||||
{
|
||||
return (int)Profiler.GetRuntimeMemorySizeLong(o);
|
||||
}
|
||||
|
||||
// Token: 0x0600120F RID: 4623
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern long GetRuntimeMemorySizeLong(Object o);
|
||||
|
||||
// Token: 0x06001210 RID: 4624 RVA: 0x00018114 File Offset: 0x00016314
|
||||
[Obsolete("GetMonoHeapSize has been deprecated since it is limited to 4GB. Please use GetMonoHeapSizeLong() instead.")]
|
||||
public static uint GetMonoHeapSize()
|
||||
{
|
||||
return (uint)Profiler.GetMonoHeapSizeLong();
|
||||
}
|
||||
|
||||
// Token: 0x06001211 RID: 4625
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern long GetMonoHeapSizeLong();
|
||||
|
||||
// Token: 0x06001212 RID: 4626 RVA: 0x00018130 File Offset: 0x00016330
|
||||
[Obsolete("GetMonoUsedSize has been deprecated since it is limited to 4GB. Please use GetMonoUsedSizeLong() instead.")]
|
||||
public static uint GetMonoUsedSize()
|
||||
{
|
||||
return (uint)Profiler.GetMonoUsedSizeLong();
|
||||
}
|
||||
|
||||
// Token: 0x06001213 RID: 4627
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern long GetMonoUsedSizeLong();
|
||||
|
||||
// Token: 0x06001214 RID: 4628
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool SetTempAllocatorRequestedSize(uint size);
|
||||
|
||||
// Token: 0x06001215 RID: 4629
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern uint GetTempAllocatorSize();
|
||||
|
||||
// Token: 0x06001216 RID: 4630 RVA: 0x0001814C File Offset: 0x0001634C
|
||||
[Obsolete("GetTotalAllocatedMemory has been deprecated since it is limited to 4GB. Please use GetTotalAllocatedMemoryLong() instead.")]
|
||||
public static uint GetTotalAllocatedMemory()
|
||||
{
|
||||
return (uint)Profiler.GetTotalAllocatedMemoryLong();
|
||||
}
|
||||
|
||||
// Token: 0x06001217 RID: 4631
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern long GetTotalAllocatedMemoryLong();
|
||||
|
||||
// Token: 0x06001218 RID: 4632 RVA: 0x00018168 File Offset: 0x00016368
|
||||
[Obsolete("GetTotalUnusedReservedMemory has been deprecated since it is limited to 4GB. Please use GetTotalUnusedReservedMemoryLong() instead.")]
|
||||
public static uint GetTotalUnusedReservedMemory()
|
||||
{
|
||||
return (uint)Profiler.GetTotalUnusedReservedMemoryLong();
|
||||
}
|
||||
|
||||
// Token: 0x06001219 RID: 4633
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern long GetTotalUnusedReservedMemoryLong();
|
||||
|
||||
// Token: 0x0600121A RID: 4634 RVA: 0x00018184 File Offset: 0x00016384
|
||||
[Obsolete("GetTotalReservedMemory has been deprecated since it is limited to 4GB. Please use GetTotalReservedMemoryLong() instead.")]
|
||||
public static uint GetTotalReservedMemory()
|
||||
{
|
||||
return (uint)Profiler.GetTotalReservedMemoryLong();
|
||||
}
|
||||
|
||||
// Token: 0x0600121B RID: 4635
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern long GetTotalReservedMemoryLong();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
namespace UnityEngine.Profiling
|
||||
{
|
||||
// Token: 0x020000FC RID: 252
|
||||
[UsedByNativeCode]
|
||||
public class Sampler
|
||||
{
|
||||
// Token: 0x06001226 RID: 4646 RVA: 0x0001824C File Offset: 0x0001644C
|
||||
internal Sampler()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x17000392 RID: 914
|
||||
// (get) Token: 0x06001227 RID: 4647 RVA: 0x00018258 File Offset: 0x00016458
|
||||
public bool isValid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.m_Ptr != IntPtr.Zero;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06001228 RID: 4648 RVA: 0x00018280 File Offset: 0x00016480
|
||||
public Recorder GetRecorder()
|
||||
{
|
||||
Recorder recorderInternal = this.GetRecorderInternal();
|
||||
return recorderInternal ?? Recorder.s_InvalidRecorder;
|
||||
}
|
||||
|
||||
// Token: 0x06001229 RID: 4649 RVA: 0x000182AC File Offset: 0x000164AC
|
||||
public static Sampler Get(string name)
|
||||
{
|
||||
Sampler samplerInternal = Sampler.GetSamplerInternal(name);
|
||||
return samplerInternal ?? Sampler.s_InvalidSampler;
|
||||
}
|
||||
|
||||
// Token: 0x0600122A RID: 4650 RVA: 0x000182D8 File Offset: 0x000164D8
|
||||
public static int GetNames(List<string> names)
|
||||
{
|
||||
return Sampler.GetSamplerNamesInternal(names);
|
||||
}
|
||||
|
||||
// Token: 0x17000393 RID: 915
|
||||
// (get) Token: 0x0600122B RID: 4651
|
||||
[ThreadAndSerializationSafe]
|
||||
public extern string name
|
||||
{
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
get;
|
||||
}
|
||||
|
||||
// Token: 0x0600122C RID: 4652
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private extern Recorder GetRecorderInternal();
|
||||
|
||||
// Token: 0x0600122D RID: 4653
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern Sampler GetSamplerInternal(string name);
|
||||
|
||||
// Token: 0x0600122E RID: 4654
|
||||
[GeneratedByOldBindingsGenerator]
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
private static extern int GetSamplerNamesInternal(object namesScriptingPtr);
|
||||
|
||||
// Token: 0x04000246 RID: 582
|
||||
internal IntPtr m_Ptr;
|
||||
|
||||
// Token: 0x04000247 RID: 583
|
||||
internal static Sampler s_InvalidSampler = new Sampler();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user