Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Profiler.enableBinaryLog

public static var enableBinaryLog: bool;

Description

Sets profiler output file in built players.

If binary log is enabled, a file is generated named "<logfile>.data" which holds binary data for the profile This becomes a large file.

See Also: Profiler.enabled, Profiler.logFile.

    function Start () {
        Profiling.Profiler.logFile = "mylog.log";
        Profiling.Profiler.enableBinaryLog = true; // writes to "mylog.log.data"
        Profiling.Profiler.enabled = true;
    }