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 <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2024-12-19 11:02:04 +01:00
parent c760836796
commit 2a17e4adde

View File

@@ -833,7 +833,7 @@ void CallgrindTool::handleShowCostsOfFunction()
if (!symbol) if (!symbol)
return; return;
if (!symbol->asFunction()) if (!symbol->asFunction() && !symbol->type()->asFunctionType())
return; return;
CPlusPlus::Overview view; CPlusPlus::Overview view;