pike.git / src / threads.c

version» Context lines:

pike.git/src/threads.c:1519: Inside #if defined(PROFILE_CHECK_THREADS) and #if defined(USE_CLOCK_FOR_SLICES)
   if (thread_start_clock) {    double slice_time =    (double) (clock() - thread_start_clock) / CLOCKS_PER_SEC;    double delta = slice_time - slice_int_mean;    slice_int_n++;    slice_int_mean += delta / slice_int_n;    slice_int_m2 += delta * (slice_time - slice_int_mean);    }   #endif    -  gettimeofday (&now, NULL); +  GETTIMEOFDAY (&now);    if (now.tv_sec > last_time) {    fprintf (stderr, "check_threads: %lu calls, %lu clocks, %lu no advs, "    "slice %.3f:%.1e, tsc int %.2e:%.1e, tsc tgt %.2e:%.1e, tps %g:%.1e\n",    calls, clock_checks, no_clock_advs,    slice_int_mean,    slice_int_n > 1 ? sqrt (slice_int_m2 / (slice_int_n - 1)) : 0.0,    tsc_int_mean,    tsc_int_n > 1 ? sqrt (tsc_int_m2 / (tsc_int_n - 1)) : 0.0,    tsc_tgt_mean,    tsc_tgt_n > 1 ? sqrt (tsc_tgt_m2 / (tsc_tgt_n - 1)) : 0.0,