Branch: Tag:

2012-01-07

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

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

277: 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 */