Don't increment caller/callee cost multiple times for recursive stacks
authorMilian Wolff <mail@milianw.de>
Sat, 21 Jan 2017 11:30:55 +0000 (12:30 +0100)
committerMilian Wolff <mail@milianw.de>
Sat, 21 Jan 2017 11:30:55 +0000 (12:30 +0100)
commitb4bd34409b85e982034d237766e6dfae49f88a89
treed694b0fb3be783c0f4edf4599e2d5cc54eb7633e
parent3c5ce9616d534c5d7ba0e45c1f502800f95c6450
Don't increment caller/callee cost multiple times for recursive stacks

When we encounter a call stack with a recursive function call, we must
not increment the caller/callee cost more than once per stack. This
fixes the cost calculation for such stacks, which used to produce
costs that where sometimes beyond the actual peak cost.
src/analyze/gui/parser.cpp