Version: 5.3 (switch to 5.4b)
IdiomaEnglish
  • C#
  • JS

Idioma de script

Selecciona tu lenguaje de programación favorito. Todos los fragmentos de código serán mostrados en este lenguaje.

Profiler

class in UnityEngine

Cambiar al Manual

Descripción

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.

Variables Estáticas

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.

Funciones Estáticas

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.