Hi Floris,

On Mon, Nov 21, 2005 at 04:45:03PM +0000, Floris Bruynooghe wrote:
> Afaik I did test recursive calls etc.

It seems to show up in any test case I try, e.g.

    import hprofile
    def wait(m):
        if m > 0:
            wait(m-1)
    def f(n):
        wait(n)
        if n > 1:
            return n*f(n-1)
        else:
            return 1
    hprofile.run("f(500)", 'dump-hprof')

The problem is in the cumulative time column, which (on this machine)
says 163 seconds for both f() and wait().  The whole program finishes in
1 second...  The same log file loaded with hotshot.stats doesn't have
this problem.


A bientot,

Armin.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to