summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-07-19 01:40:05 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-07-19 01:43:58 +0200
commit0098e9243cdeea1c000b4d390a4b71ae76e9f7e9 (patch)
tree22de006870d3035dffc57c5473250e47d295bf02 /editor
parentb76dfde329592ecfd6f6b952082ae21859039e67 (diff)
Improve tooltips in the editor profiler to mention the script name
Co-authored-by: CrispyPin <crispin@tasa.se>
Diffstat (limited to 'editor')
-rw-r--r--editor/debugger/editor_profiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/debugger/editor_profiler.cpp b/editor/debugger/editor_profiler.cpp
index 5f4d1b6f36..204842d772 100644
--- a/editor/debugger/editor_profiler.cpp
+++ b/editor/debugger/editor_profiler.cpp
@@ -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;