1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Implement Autostart Feature for Profiler / Visual Profiler / Network Profiler

Co-authored-by: stmSi <stm1998sithumyo@gmail.com>
This commit is contained in:
Hendrik Brucker
2024-09-10 19:40:42 +02:00
parent 27552a2f26
commit c53fd9c7be
8 changed files with 91 additions and 12 deletions

View File

@@ -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;
}