forked from qt-creator/qt-creator
Valgrind: Fix callgrind function call calculation
Broke with 7450bcb2b9
.
Change-Id: Ib5e2506bc69fa9bdbda7a95c064727069b430a06
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Artem Sokolovskii
parent
4d9215e44d
commit
6fc98722e2
@@ -83,7 +83,8 @@ void FunctionCycle::setFunctions(const QVector<const Function *> &functions)
|
||||
d->accumulateCall(call, Function::Private::Outgoing);
|
||||
}
|
||||
// add incoming calls from functions that are not part of the cycle
|
||||
for (const FunctionCall *call : calls) {
|
||||
const QVector<const FunctionCall *> inCalls = func->incomingCalls();
|
||||
for (const FunctionCall *call : inCalls) {
|
||||
if (!functions.contains(call->caller())) {
|
||||
d->accumulateCall(call, Function::Private::Incoming);
|
||||
d->m_called += call->calls();
|
||||
|
Reference in New Issue
Block a user