You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use EditorApplication.update instead of OnInspectorUpdate, because OnInspectorUpdate isn't called without any input interaction. So with the earlier changes, you could capture a snapshot and when you don't move the mouse, the window wouldn't update and thus show no progress.
Copy file name to clipboardExpand all lines: Editor/Scripts/HeapExplorerWindow.cs
+21-10Lines changed: 21 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// Heap Explorer for Unity. Copyright (c) 2019-2020 Peter Schraut (www.console-dev.de). See LICENSE.md
3
3
// https://github.com/pschraut/UnityHeapExplorer/
4
4
//
5
+
#pragma warning disable 0414
5
6
usingSystem.Collections;
6
7
usingSystem.Collections.Generic;
7
8
usingUnityEngine;
@@ -37,7 +38,6 @@ public PackedMemorySnapshot snapshot
37
38
}
38
39
}
39
40
40
-
#pragma warning disable 0414
41
41
[NonSerialized]TestVariablesm_TestVariables=newTestVariables();// Allows me to easily check/test various types when capturing a snapshot in the editor.
42
42
[NonSerialized]boolm_IsCapturing;// Whether the tool is currently capturing a memory snapshot
@@ -48,7 +48,6 @@ public PackedMemorySnapshot snapshot
48
48
[NonSerialized]Rectm_FileToolbarButtonRect;// The rect of the File button in the toolbar menu. Used as position to open its popup menu.
49
49
[NonSerialized]Rectm_ViewToolbarButtonRect;// The rect of the View button in the toolbar menu. Used as position to open its popup menu.
50
50
[NonSerialized]Rectm_CaptureToolbarButtonRect;// The rect of the Capture button in the toolbar menu. Used as position to open its popup menu.
51
-
publicboolisClosing{get;privateset;}
52
51
[NonSerialized]List<AbstractThreadJob>m_ThreadJobs=newList<AbstractThreadJob>();// Jobs to run on a background thread
53
52
[NonSerialized]List<AbstractThreadJob>m_IntegrationJobs=newList<AbstractThreadJob>();// These are completed thread jobs that are not being integrated on the main-thread
54
53
[NonSerialized]boolm_Repaint;// Threads write to this variable rather than calling window.Repaint()
@@ -59,9 +58,11 @@ public PackedMemorySnapshot snapshot
59
58
[NonSerialized]intm_BusyDraws;
60
59
[NonSerialized]List<Exception>m_Exceptions=newList<Exception>();// If exception occur in threaded jobs, these are collected and logged on the main thread
61
60
[NonSerialized]boolm_CloseDueToError;// If set to true, will close the editor during the next Update
61
+
[NonSerialized]doublem_LastRepaintTimestamp;// The EditorApplication.timeSinceStartup when a Repaint() was issued
0 commit comments