pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:2372: Inside #if defined(PROFILING)
   {    /* We must update the profiling info of the previous frame    * to account for that the current frame has gone away.    */    cpu_time_t total_time =    get_cpu_time() - (Pike_interpreter.unlocked_time + current->start_time);    cpu_time_t child_time =    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;    Pike_interpreter.accounted_time += total_time;   #ifdef PROFILING_DEBUG    fprintf(stderr, "%p: Unlinking previous frame.\n"    "Previous: %" PRINT_CPU_TIME " %" PRINT_CPU_TIME "\n"    "Current: %" PRINT_CPU_TIME " %" PRINT_CPU_TIME "\n",    Pike_interpreter.thread_state,    prev->start_time, prev->children_base,