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; }
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Start() { Profiling.Profiler.logFile = "mylog.log"; Profiling.Profiler.enableBinaryLog = true; Profiling.Profiler.enabled = true; } }