Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2002-07-22 08:32:24


David Abrahams wrote:
> From: "Vladimir Prus" <ghost_at_[hidden]>
>
> > I've noticed that the current jam profiling does not handle recursive
>
> calls
>
> > in any way.
>
> What makes you think special handling is needed?

Say you call x which call x which calls x. I'll refer to function instances as
x1, x2 and x3 ;

Cumulative time for x will include
net time for x3 +
net time for x2 + total time for x3 +
net time for x1 + total time for x2
and this is equal to
net time for x1 + 2 * net time for x2 + 3 * net time for x3.

You're counting the same time several times!

- Volodya

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk