Version: 2017.2

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

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

See Also: Profiler.