forked from qt-creator/qt-creator
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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user