From 2a17e4adde559ec869512788ef36bfdc61c4fe77 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 19 Dec 2024 11:02:04 +0100 Subject: [PATCH] Callgrind: Fix Profile Costs of This Function and Its Callees Accept also Declaration symbol of Function type, otherwise invoking the action over e.g. "app.exec();" won't start the callgrind. Change-Id: If8c8a4e412dd47c62f0052b6b9731899e42e8de7 Reviewed-by: Christian Kandeler --- src/plugins/valgrind/callgrindtool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/valgrind/callgrindtool.cpp b/src/plugins/valgrind/callgrindtool.cpp index abab7340e6d..1575e368c5c 100644 --- a/src/plugins/valgrind/callgrindtool.cpp +++ b/src/plugins/valgrind/callgrindtool.cpp @@ -833,7 +833,7 @@ void CallgrindTool::handleShowCostsOfFunction() if (!symbol) return; - if (!symbol->asFunction()) + if (!symbol->asFunction() && !symbol->type()->asFunctionType()) return; CPlusPlus::Overview view;