Version: 2017.1

Profiler.AddFramesFromFile

切换到手册
public static void AddFramesFromFile (string file);

描述

Displays the recorded profiledata in the profiler.

Use the name of the text file, ".data" will be appended.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { Profiling.Profiler.AddFramesFromFile("mylog.log"); } }

另请参阅:Profiler