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(); } }