pike.git / src / interpret.h

version» Context lines:

pike.git/src/interpret.h:837: Inside #if defined(PROFILING)
  #ifdef PROFILING    /* Time spent in this frame + children. */    cpu_time_t time_passed = get_cpu_time() - Pike_interpreter.unlocked_time;    /* Time spent in children to this frame. */    cpu_time_t time_in_children;    /* Time spent in just this frame. */    cpu_time_t self_time;    struct identifier *function;    W_PROFILING_DEBUG("%p}: Pop got %" PRINT_CPU_TIME    " (%" PRINT_CPU_TIME ")" -  " %" PRINT_CPU_TIME " (%" PRINT_CPU_TIME ")n", +  " %" PRINT_CPU_TIME " (%" PRINT_CPU_TIME ")\n",    Pike_interpreter.thread_state, time_passed,    frame->start_time,    Pike_interpreter.accounted_time,    frame->children_base);    time_passed -= frame->start_time;   # ifdef PIKE_DEBUG    if (time_passed < 0) {    Pike_fatal("Negative time_passed: %" PRINT_CPU_TIME    " now: %" PRINT_CPU_TIME    " unlocked_time: %" PRINT_CPU_TIME    " start_time: %" PRINT_CPU_TIME -  "n", time_passed, get_cpu_time(), +  "\n", time_passed, get_cpu_time(),    Pike_interpreter.unlocked_time,    frame->start_time);    }   # endif /* PIKE_DEBUG */    time_in_children = Pike_interpreter.accounted_time - frame->children_base;   # ifdef PIKE_DEBUG    if (time_in_children < 0) { -  Pike_fatal("Negative time_in_children: %" -  PRINT_CPU_TIME +  Pike_fatal("Negative time_in_children: %" PRINT_CPU_TIME    " accounted_time: %" PRINT_CPU_TIME    " children_base: %" PRINT_CPU_TIME -  "n", time_in_children, +  "\n", time_in_children,    Pike_interpreter.accounted_time,    frame->children_base);    }   # endif /* PIKE_DEBUG */    self_time = time_passed - time_in_children;   # ifdef PIKE_DEBUG    if (self_time < 0) {    Pike_fatal("Negative self_time: %" PRINT_CPU_TIME    " time_passed: %" PRINT_CPU_TIME    " time_in_children: %" PRINT_CPU_TIME -  "n", self_time, time_passed, +  "\n", self_time, time_passed,    time_in_children);    }   # endif /* PIKE_DEBUG */    Pike_interpreter.accounted_time += self_time;       if (frame->context) {    function = frame->context->prog->identifiers + frame->ident;    if (!--function->recur_depth)    function->total_time += time_passed;    function->self_time += self_time;    }   #endif /* PROFILING */       LOW_POP_PIKE_FRAME (frame);   }      #endif