Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Profiler.AddFramesFromFile

static function AddFramesFromFile(file: string): void;
static void AddFramesFromFile(string file);
static def AddFramesFromFile(file as string) as void

Description

Displays the recorded profiledata in the profiler.

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

	Profiler.AddFramesFromFile ("mylog.log");
using UnityEngine;
using System.Collections;

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

public class ExampleClass(MonoBehaviour):

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

See Also: Profiler.AddFramesFromFile, Profiler.