Version: 5.5

Profiler

class in UnityEngine.Profiling

Switch to Manual

Description

Controls the Profiler from script.

You can add custom Profiler sections in your scripts with Profiler.BeginSample and Profiler.EndSample.

In standalone games, Profiler can dump all profiling information using Profiler.logFile and Profiler.enabled.

Static Variables

enableBinaryLogSets profiler output file in built players.
enabledВключает Profiler.
logFileSets profiler output file in built players.
usedHeapSizeHeap size used by the program.

Static Functions

AddFramesFromFileDisplays the recorded profiledata in the profiler.
BeginSampleBegin profiling a piece of code with a custom label.
EndSampleEnd profiling a piece of code with a custom label.
GetMonoHeapSizeReturns the size of the mono heap.
GetMonoUsedSizeReturns the used size from mono.
GetRuntimeMemorySizeReturns the runtime memory usage of the resource.
GetTempAllocatorSizeReturns the size of the temp allocator.
GetTotalAllocatedMemoryReturns the amount of allocated and used system memory.
GetTotalReservedMemoryReturns the amount of reserved system memory.
GetTotalUnusedReservedMemoryReturns the amount of reserved but not used system memory.
SetTempAllocatorRequestedSizeSets the size of the temp allocator.