mirror of
https://github.com/godotengine/godot.git
synced 2025-02-13 14:20:45 +00:00
Merge pull request #50599 from Calinou/editor-profiler-improve-tooltip
Improve tooltips in the editor profiler to mention the script name
This commit is contained in:
commit
617327118b
@ -356,7 +356,7 @@ void EditorProfiler::_update_frame() {
|
|||||||
item->set_metadata(1, it.script);
|
item->set_metadata(1, it.script);
|
||||||
item->set_metadata(2, it.line);
|
item->set_metadata(2, it.line);
|
||||||
item->set_text_align(2, TreeItem::ALIGN_RIGHT);
|
item->set_text_align(2, TreeItem::ALIGN_RIGHT);
|
||||||
item->set_tooltip(0, it.script + ":" + itos(it.line));
|
item->set_tooltip(0, it.name + "\n" + it.script + ":" + itos(it.line));
|
||||||
|
|
||||||
float time = dtime == DISPLAY_SELF_TIME ? it.self : it.total;
|
float time = dtime == DISPLAY_SELF_TIME ? it.self : it.total;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user