Display CPU and GPU model name in the editor visual profiler

This shows the information from the remote device, which will typically
differ from the local device in remote debugging scenarios.
This commit is contained in:
Hugo Locurcio 2024-11-11 19:51:54 +01:00
parent 0f5f3bc954
commit 3e8a24d0da
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
4 changed files with 22 additions and 2 deletions

View file

@ -98,6 +98,9 @@ private:
float graph_limit = 1000.0f / 60;
String cpu_name;
String gpu_name;
bool seeking = false;
Timer *frame_delay = nullptr;
@ -136,6 +139,7 @@ protected:
static void _bind_methods();
public:
void set_hardware_info(const String &p_cpu_name, const String &p_gpu_name);
void add_frame_metric(const Metric &p_metric);
void set_enabled(bool p_enable);
void set_profiling(bool p_profiling);