Version: 2017.3

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;
using UnityEngine.Profiling;

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

另请参阅:Profiler