Version: 2017.3

Profiler.enableBinaryLog

매뉴얼로 전환
public static bool enableBinaryLog ;

설명

Enables the logging of profiling data to a file.

When enabled, the Unity player saves profiling data to the file specified in the Profiler.logFile file. The player automatically assigns the file extension, “.raw” to this log file. You can load this file in the Unity Editor Profile window to view the data.

You must also set Profiler.enabled to true.

using UnityEngine;
using System.Collections;
using UnityEngine.Profiling;

public class ExampleClass : MonoBehaviour { void Start() { Profiler.logFile = "mylog"; //Also supports passing "myLog.raw" Profiler.enableBinaryLog = true; Profiler.enabled = true; } }