Version: 5.3

Profiler

class in UnityEngine

매뉴얼로 전환

설명

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.
maxNumberOfSamplesPerFrameResize the profiler sample buffers to allow the desired amount of samples per thread.
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.
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.