Profiler.AddFramesFromFile

Switch to Manual
public static void AddFramesFromFile (string file);

Description

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