2012-01-07
2012-01-07 02:36:30 by 0
-
5ca7b541e774d0c5ce2850587b3666017e6fb33d
(2 lines)
(+2/-0)
[
Show
| Annotate
]
Branch: 7.9
Fix profiling of recursive functions by tracking recursion level. Fixes [bug 5131 (#5131)].
288: Inside #if defined(PROFILING)
unsigned INT16 opt_flags; /* OPT_??? */
#ifdef PROFILING
unsigned INT32 num_calls; /* Total number of calls. */
+ unsigned INT32 recur_depth; /* Recursion depth during timing. */
cpu_time_t total_time; /* Total time with children. */
cpu_time_t self_time; /* Total time excluding children. */
#endif /* PROFILING */