Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1107 2012/02/14 16:52:38 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1108 2012/02/14 18:06:51 jonasw Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:1320: Inside #if defined(THREADS)
   bg_queue->size());   #endif       float task_vtime, task_rtime;    bg_num_runs++;      #ifndef NO_SLOW_REQ_BT    if ((monitor = slow_req_monitor) && slow_req_timeout > 0.0) {    call_out = monitor->call_out (dump_slow_req, slow_req_timeout,    this_thread(), slow_req_timeout); -  int start_hrtime = gethrtime (1); +  int start_hrtime = gethrtime();    thread_task_start_times[this_thread()] = start_hrtime;    task_vtime = gauge {    if (task[0]) // Ignore things that have become destructed.    // Note: BackgroundProcess.repeat assumes that there are    // exactly two refs to task[0] during the call below.    task[0] (@task[1]);    }; -  task_rtime = (gethrtime (1) - start_hrtime) / 1e9; +  task_rtime = (gethrtime() - start_hrtime) / 1e6;    thread_task_start_times[this_thread()] = 0;    monitor->remove_call_out (call_out);    }    else   #endif    { -  int start_hrtime = gethrtime (1); +  int start_hrtime = gethrtime();    thread_task_start_times[this_thread()] = start_hrtime;    task_vtime = gauge {    if (task[0])    task[0] (@task[1]);    }; -  task_rtime = (gethrtime (1) - start_hrtime) / 1e9; +  task_rtime = (gethrtime() - start_hrtime) / 1e6;    thread_task_start_times[this_thread()] = 0;    }       if (task_rtime > 0.01) bg_num_runs_001s++;    if (task_rtime > 0.05) bg_num_runs_005s++;    if (task_rtime > 0.15) bg_num_runs_015s++;    if (task_rtime > 0.50) bg_num_runs_05s++;    if (task_rtime > 1.00) bg_num_runs_1s++;    if (task_rtime > 5.00) bg_num_runs_5s++;    if (task_rtime > 15.00) bg_num_runs_15s++;