summaryrefslogtreecommitdiff
path: root/servers/debugger
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-05-05 20:23:47 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-05-05 20:23:47 +0200
commit79be2c7b75aed74541172187ce0d5249d129768d (patch)
tree9c57b663ffbba1041df7dc1484223635dd84da0f /servers/debugger
parentefd6e4da0c506d0f6755f242484aba1bdc762b6e (diff)
Rename profiler "Idle Time" to "Process Time"
References to "idle time" are progressively being replaced by "process time" throughout the engine to avoid confusion.
Diffstat (limited to 'servers/debugger')
-rw-r--r--servers/debugger/servers_debugger.cpp14
-rw-r--r--servers/debugger/servers_debugger.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/servers/debugger/servers_debugger.cpp b/servers/debugger/servers_debugger.cpp
index d1391937d9..02703cacbf 100644
--- a/servers/debugger/servers_debugger.cpp
+++ b/servers/debugger/servers_debugger.cpp
@@ -89,7 +89,7 @@ Array ServersDebugger::ServersProfilerFrame::serialize() {
Array arr;
arr.push_back(frame_number);
arr.push_back(frame_time);
- arr.push_back(idle_time);
+ arr.push_back(process_time);
arr.push_back(physics_time);
arr.push_back(physics_frame_time);
arr.push_back(script_time);
@@ -120,7 +120,7 @@ bool ServersDebugger::ServersProfilerFrame::deserialize(const Array &p_arr) {
CHECK_SIZE(p_arr, 7, "ServersProfilerFrame");
frame_number = p_arr[0];
frame_time = p_arr[1];
- idle_time = p_arr[2];
+ process_time = p_arr[2];
physics_time = p_arr[3];
physics_frame_time = p_arr[4];
script_time = p_arr[5];
@@ -281,7 +281,7 @@ class ServersDebugger::ServersProfiler : public EngineProfiler {
ScriptsProfiler scripts_profiler;
double frame_time = 0;
- double idle_time = 0;
+ double process_time = 0;
double physics_time = 0;
double physics_frame_time = 0;
@@ -289,7 +289,7 @@ class ServersDebugger::ServersProfiler : public EngineProfiler {
ServersDebugger::ServersProfilerFrame frame;
frame.frame_number = Engine::get_singleton()->get_process_frames();
frame.frame_time = frame_time;
- frame.idle_time = idle_time;
+ frame.process_time = process_time;
frame.physics_time = physics_time;
frame.physics_frame_time = physics_frame_time;
Map<StringName, ServerInfo>::Element *E = server_data.front();
@@ -340,9 +340,9 @@ public:
srv.functions.push_back(fi);
}
- void tick(double p_frame_time, double p_idle_time, double p_physics_time, double p_physics_frame_time) {
+ void tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) {
frame_time = p_frame_time;
- idle_time = p_idle_time;
+ process_time = p_process_time;
physics_time = p_physics_time;
physics_frame_time = p_physics_frame_time;
_send_frame_data(false);
@@ -366,7 +366,7 @@ public:
void add(const Array &p_data) {}
- void tick(double p_frame_time, double p_idle_time, double p_physics_time, double p_physics_frame_time) {
+ void tick(double p_frame_time, double p_process_time, double p_physics_time, double p_physics_frame_time) {
Vector<RS::FrameProfileArea> profile_areas = RS::get_singleton()->get_frame_profile();
ServersDebugger::VisualProfilerFrame frame;
if (!profile_areas.size()) {
diff --git a/servers/debugger/servers_debugger.h b/servers/debugger/servers_debugger.h
index d1c55dc690..f949c436e7 100644
--- a/servers/debugger/servers_debugger.h
+++ b/servers/debugger/servers_debugger.h
@@ -85,7 +85,7 @@ public:
struct ServersProfilerFrame {
int frame_number = 0;
double frame_time = 0;
- double idle_time = 0;
+ double process_time = 0;
double physics_time = 0;
double physics_frame_time = 0;
double script_time = 0;