Version: 5.5

Profiler

class in UnityEngine.Profiling

매뉴얼로 전환

설명

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.

정적 변수

enableBinaryLogSets profiler output file in built players.
enabledEnables the Profiler.
logFileSets profiler output file in built players.
usedHeapSizeHeap size used by the program.

정적 함수

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.