Profiling the Editor - how do you pause it?

Hi,

I’m profiling the editor, to find out why you have to click or hold down a key for a second or more before it works. The editor often becomes unresponsive and it’s crashed several times today.

I’ve found a number of frames in which DockArea.OnGUI takes above 4000%. Unfortunately, I’ve only got 10 seconds to find the culprit before the frame is lost. The GPU is taking around 835ms to render the editor. Even if you’re patient, the editor will only survive for 10 minutes at a time (and Ctrl+s doesn’t always work).

My guess is that there is some kind of editor script which is causing this, but it’s really hard to work out which one it is. Due to project constraints, I just don’t have time/resources to track down the culprit.

Is there a tool which can help identify problematic editor scripts?
Or is there a way to pause the profiler (for Profile Editor mode)?

I’ve attached a screenshot of what the profiler looks like while I’ve been typing this - you can see where I tried to click a menu.

Edit: The screenshot where I clicked, resulted in Unity crashing a few seconds later: 1489265--83042--$ProfilerCrashed.png

Any tips, tricks or answers?

Cheers,

Matt

Have you tried to click on Record button ? This button can toggling the recording state, It won’t pause the game but stop receiving the data so you can invest. Hope this help.

2 Likes

Can someone at Unity please address this? The profiler is absolutely useless with respect to the editor because of the rate at which it records, the frame window that it is forced to cover, and the controls. I cannot say if the profiler does a good job or not because the UI doesn’t let me use it. It’s such a waste of someone’s effort…

This is very old, but today I found this with a Google search. In case anyone has this issue: you can pause the Profiler with F9 (I think this was fixed in 2017 or something)

1 Like