From 79d3a6c8dfa968b466f37891e52434446c71dde2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 19 Jul 2021 01:40:05 +0200 Subject: [PATCH] Improve tooltips in the editor profiler to mention the script name Co-authored-by: CrispyPin (cherry picked from commit 0098e9243cdeea1c000b4d390a4b71ae76e9f7e9) --- editor/editor_profiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_profiler.cpp b/editor/editor_profiler.cpp index 27009453143..d1c0e66bc1a 100644 --- a/editor/editor_profiler.cpp +++ b/editor/editor_profiler.cpp @@ -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;