Improve tooltips in the editor profiler to mention the script name

Co-authored-by: CrispyPin <crispin@tasa.se>
(cherry picked from commit 0098e9243c)
This commit is contained in:
Hugo Locurcio 2021-07-19 01:40:05 +02:00 committed by Rémi Verschelde
parent 1899a3b1ea
commit 79d3a6c8df
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -390,7 +390,7 @@ void EditorProfiler::_update_frame() {
item->set_metadata(1, it.script);
item->set_metadata(2, it.line);
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;