summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer/editor/multiplayer_editor_plugin.cpp
diff options
context:
space:
mode:
authorHendrik Brucker <hendrik.brucker@mail.de>2024-09-10 19:40:42 +0200
committerHendrik Brucker <hendrik.brucker@mail.de>2024-09-10 19:40:42 +0200
commitc53fd9c7be09d0eac2a000816dc7439cc0f568a7 (patch)
treed9ffffbcd5c7c4b0644767aef19c231c4850309e /modules/multiplayer/editor/multiplayer_editor_plugin.cpp
parent27552a2f26adcdba579cd804197de3942e8cb0ec (diff)
downloadredot-engine-c53fd9c7be09d0eac2a000816dc7439cc0f568a7.tar.gz
Implement Autostart Feature for Profiler / Visual Profiler / Network Profiler
Co-authored-by: stmSi <stm1998sithumyo@gmail.com>
Diffstat (limited to 'modules/multiplayer/editor/multiplayer_editor_plugin.cpp')
-rw-r--r--modules/multiplayer/editor/multiplayer_editor_plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/multiplayer/editor/multiplayer_editor_plugin.cpp b/modules/multiplayer/editor/multiplayer_editor_plugin.cpp
index a496f5dfa2..817d503aec 100644
--- a/modules/multiplayer/editor/multiplayer_editor_plugin.cpp
+++ b/modules/multiplayer/editor/multiplayer_editor_plugin.cpp
@@ -106,6 +106,8 @@ void MultiplayerEditorDebugger::setup_session(int p_session_id) {
profiler->connect("enable_profiling", callable_mp(this, &MultiplayerEditorDebugger::_profiler_activate).bind(p_session_id));
profiler->connect("open_request", callable_mp(this, &MultiplayerEditorDebugger::_open_request));
profiler->set_name(TTR("Network Profiler"));
+ session->connect("started", callable_mp(profiler, &EditorNetworkProfiler::started));
+ session->connect("stopped", callable_mp(profiler, &EditorNetworkProfiler::stopped));
session->add_session_tab(profiler);
profilers[p_session_id] = profiler;
}