Profiler.enabled Manual     Reference     Scripting  
Scripting > Runtime Classes > Profiler
Profiler.enabled

static var enabled : bool

Description

Enables the Profiler.

Can be used with Profiler.logFile to log profiling information in built players.

function Start ()
{
Profiler.logFile = "mylog.log";
Profiler.enabled = true;
}

See Also: Profiler.logFile