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:
Rémi Verschelde 2021-07-19 22:57:39 +02:00 committed by GitHub
commit 617327118b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,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;