Branch: Tag:

2012-01-07

2012-01-07 02:36:30 by 0

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

2379: Inside #if defined(PROFILING)
   Pike_interpreter.accounted_time - current->children_base;    struct identifier *function =    current->context->prog->identifiers + current->ident; +  if (!function->recur_depth)    function->total_time += total_time;    total_time -= child_time;    function->self_time += total_time;