Scripting API

Profiler

static class in UnityEngine.Profiling · UnityEngine.CoreModule

25 of 32 of Unity's membersUnity's documentation
In Tassix

The profiler, as a release player has it: unsupported, samples are no-ops, and the memory queries report the managed heap.

Properties 10

static int areaCount { get; }
static bool enableAllocationCallstacks { get; set; }
static bool enableBinaryLog { get; set; }
static bool enabled { get; set; }
static string logFile { get; set; }
static int maxNumberOfSamplesPerFrame { get; set; }
static int maxUsedMemory { get; set; }
static bool supported { get; }
static uint usedHeapSize { get; }
static long usedHeapSizeLong { get; }

Methods 23

static void AddFramesFromFile(string file)
static void BeginSample(string name)
static void BeginSample(string name, Object targetObject)
static void BeginThreadProfiling(string threadGroupName, string threadName)
static void EndSample()
static void EndThreadProfiling()
static long GetAllocatedMemoryForGraphicsDriver()
static bool GetAreaEnabled(ProfilerArea area)
static uint GetMonoHeapSize()
static long GetMonoHeapSizeLong()
static uint GetMonoUsedSize()
static long GetMonoUsedSizeLong()
static int GetRuntimeMemorySize(Object o)
static long GetRuntimeMemorySizeLong(Object o)
static uint GetTempAllocatorSize()
static uint GetTotalAllocatedMemory()
static long GetTotalAllocatedMemoryLong()
static uint GetTotalReservedMemory()
static long GetTotalReservedMemoryLong()
static uint GetTotalUnusedReservedMemory()
static long GetTotalUnusedReservedMemoryLong()
static void SetAreaEnabled(ProfilerArea area, bool enabled)
static void SetScreenshotCaptureFrameInterval(int frameInterval)
static bool SetTempAllocatorRequestedSize(uint size)

Not in Tassix yet 7

EmitFrameMetaData EmitSessionMetaData GetAllCategories GetCategoriesCount GetTotalFragmentationInfo IsCategoryEnabled SetCategoryEnabled