summaryrefslogtreecommitdiffstats
path: root/servers/debugger
diff options
context:
space:
mode:
author风青山 <idleman@yeah.net>2024-01-04 15:39:06 +0800
committer风青山 <idleman@yeah.net>2024-01-04 17:19:26 +0800
commit3d3c4e87c7dd88eba3ef668f10d9266003382ee3 (patch)
tree52291fd69942fe11ee43c97e4c8a1ed2c73e19ff /servers/debugger
parentd822fd53221f68c562deda6a8c35a524e7fdf146 (diff)
downloadredot-engine-3d3c4e87c7dd88eba3ef668f10d9266003382ee3.tar.gz
Display functions that were previously forgotten in Profiler
The array data in `add()` contains these data, but some data may have been forgotten to be converted into `ServerFunctionInfo`. This results in some information not being displayed in the Profiler.
Diffstat (limited to 'servers/debugger')
-rw-r--r--servers/debugger/servers_debugger.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/servers/debugger/servers_debugger.cpp b/servers/debugger/servers_debugger.cpp
index bf7dd6c29e..8da3a10ce9 100644
--- a/servers/debugger/servers_debugger.cpp
+++ b/servers/debugger/servers_debugger.cpp
@@ -342,10 +342,12 @@ public:
}
ServerInfo &srv = server_data[name];
- ServerFunctionInfo fi;
- fi.name = p_data[1];
- fi.time = p_data[2];
- srv.functions.push_back(fi);
+ for (int idx = 1; idx < p_data.size() - 1; idx += 2) {
+ ServerFunctionInfo fi;
+ fi.name = p_data[idx];
+ fi.time = p_data[idx + 1];
+ srv.functions.push_back(fi);
+ }
}
void tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) {