summaryrefslogtreecommitdiffstats
path: root/editor/debugger/script_editor_debugger.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-03-08 12:21:08 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-03-08 12:36:39 +0100
commit3b47eb51e4025fae6dd63eb405dee54c49281a5f (patch)
tree41800eaf051ae2bed5cb58c29cd3b01443081d16 /editor/debugger/script_editor_debugger.h
parentb8ddaf9c33107e01928e04ed462aa08d4017247b (diff)
downloadredot-engine-3b47eb51e4025fae6dd63eb405dee54c49281a5f.tar.gz
Update editor debugger to new remote debugger.
Shared RemoteDebuggerPeer code between client and server. Move editor profilers inside editor/debugger folder.
Diffstat (limited to 'editor/debugger/script_editor_debugger.h')
-rw-r--r--editor/debugger/script_editor_debugger.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/editor/debugger/script_editor_debugger.h b/editor/debugger/script_editor_debugger.h
index 1fd0713fe5..e7ce917543 100644
--- a/editor/debugger/script_editor_debugger.h
+++ b/editor/debugger/script_editor_debugger.h
@@ -67,6 +67,12 @@ private:
MESSAGE_SUCCESS,
};
+ enum ProfilerType {
+ PROFILER_NETWORK,
+ PROFILER_VISUAL,
+ PROFILER_SCRIPTS_SERVERS
+ };
+
AcceptDialog *msgdialog;
LineEdit *clicked_ctrl;
@@ -121,7 +127,7 @@ private:
EditorDebuggerInspector *inspector;
SceneDebuggerTree *scene_tree;
- Ref<EditorDebuggerPeer> peer;
+ Ref<RemoteDebuggerPeer> peer;
HashMap<NodePath, int> node_path_cache;
int last_path_id;
@@ -171,12 +177,9 @@ private:
void _expand_errors_list();
void _collapse_errors_list();
- void _visual_profiler_activate(bool p_enable);
- void _profiler_activate(bool p_enable);
+ void _profiler_activate(bool p_enable, int p_profiler);
void _profiler_seeked();
- void _network_profiler_activate(bool p_enable);
-
void _clear_errors_list();
void _error_tree_item_rmb_selected(const Vector2 &p_pos);
@@ -204,7 +207,7 @@ public:
void request_remote_tree();
const SceneDebuggerTree *get_remote_tree();
- void start(Ref<EditorDebuggerPeer> p_peer);
+ void start(Ref<RemoteDebuggerPeer> p_peer);
void stop();
void debug_skip_breakpoints();