Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;
public class ProfileTest : MonoBehaviour {
Recorder recorder, hit;
void Awake()
recorder = Recorder.Get("FixedUpdate.PhysicsFixedUpdate");
recorder.enabled = true;
void Update()
if (recorder.elapsedNanoseconds > 5000000f) {
UnityEditor.EditorApplication.isPaused = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment