diff options
| author | Juan Linietsky | 2016-05-21 21:18:16 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-05-21 21:18:16 -0300 |
| commit | a75f8963380a1f6ae8501f21a1d3f3bef8a89d91 (patch) | |
| tree | ae561ded247f81565c8287b6fd4b816f6ec762e6 /tools/editor/script_editor_debugger.h | |
| parent | c195c0df6b36debc870216dd42e49fbda70fa861 (diff) | |
| download | godot-a75f8963380a1f6ae8501f21a1d3f3bef8a89d91.tar.gz godot-a75f8963380a1f6ae8501f21a1d3f3bef8a89d91.tar.zst godot-a75f8963380a1f6ae8501f21a1d3f3bef8a89d91.zip | |
First version of Profiler
It is now possible to profile GDScript as well as some parts of Godot
internals.
Diffstat (limited to '')
| -rw-r--r-- | tools/editor/script_editor_debugger.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/editor/script_editor_debugger.h b/tools/editor/script_editor_debugger.h index ecd049495..128834988 100644 --- a/tools/editor/script_editor_debugger.h +++ b/tools/editor/script_editor_debugger.h @@ -34,6 +34,7 @@ #include "core/io/tcp_server.h" #include "core/io/packet_peer.h" + class Tree; class PropertyEditor; class EditorNode; @@ -46,6 +47,7 @@ class AcceptDialog; class TreeItem; class HSplitContainer; class ItemList; +class EditorProfiler; class ScriptEditorDebugger : public Control { @@ -93,6 +95,8 @@ class ScriptEditorDebugger : public Control { Vector<float> perf_max; Vector<TreeItem*> perf_items; + Map<int,String> profiler_signature; + Tree *perf_monitors; Control *perf_draw; @@ -115,6 +119,7 @@ class ScriptEditorDebugger : public Control { int last_path_id; Map<String,int> res_path_cache; + EditorProfiler *profiler; EditorNode *editor; @@ -148,6 +153,13 @@ class ScriptEditorDebugger : public Control { void _error_selected(int p_idx); void _error_stack_selected(int p_idx); + void _profiler_activate(bool p_enable); + void _profiler_seeked(); + + + + void _paused(); + protected: void _notification(int p_what); |
