Merge pull request #99086 from Calinou/editor-visual-profiler-show-hardware-info

Display CPU and GPU model name in the editor visual profiler
This commit is contained in:
Rémi Verschelde 2024-11-29 22:46:58 +01:00
commit 4aed2b7981
No known key found for this signature in database
GPG key ID: C3336907360768E1
4 changed files with 22 additions and 2 deletions

View file

@ -513,6 +513,10 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, uint64_t p_thread
frame_data.write[i] = p_data[i];
}
performance_profiler->add_profile_frame(frame_data);
} else if (p_msg == "visual:hardware_info") {
const String cpu_name = p_data[0];
const String gpu_name = p_data[1];
visual_profiler->set_hardware_info(cpu_name, gpu_name);
} else if (p_msg == "visual:profile_frame") {
ServersDebugger::VisualProfilerFrame frame;
frame.deserialize(p_data);