Branch: Tag:

2012-01-07

2012-01-07 02:36:30 by Jonas Walldén <jonasw@roxen.com>

Fix profiling of recursive functions by tracking recursion level. Fixes [bug 5131 (#5131)].

626:    Pike_interpreter.accounted_time += self_time; \    /* FIXME: Can context->prog be NULL? */ \    function = _fp_->context->prog->identifiers + _fp_->ident; \ +  if (!--function->recur_depth) \    function->total_time += time_passed; \    function->self_time += self_time; \    }); \