Profiler.AddFramesFromFile Manual     Reference     Scripting  
Scripting > Runtime Classes > Profiler
Profiler.AddFramesFromFile

static function AddFramesFromFile (file : String) : void

Description

Displays the recorded profiledata in the profiler.

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

JavaScript
Profiler.AddFramesFromFile ("mylog.log");

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
Profiler.AddFramesFromFile('mylog.log')

See Also: Profiler.AddFramesFromFile, Profiler.