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:
parent
0f5f3bc954
commit
3e8a24d0da
4 changed files with 22 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue