Branch: Tag:

2001-05-07

2001-05-07 02:48:36 by Per Hedbor <ph@opera.com>

-DAVERAGE_PROFLING added. I needed a new macro, TRACE_ENTER and TRACE_LEAVE were very unsuited for the job. Currently just dumps the info to stdout now and then. Will be improved significantly later on.

Rev: server/base_server/configuration.pike:1.429
Rev: server/base_server/roxen.pike:1.664
Rev: server/etc/include/request_trace.h:1.5

4:   // 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.663 2001/04/25 08:33:59 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.664 2001/05/07 02:48:35 per Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
3592:   }   #endif    + void show_avg_prof() + { +  foreach(configurations, Configuration c ) +  c->debug_write_prof( ); +  call_out(show_avg_prof, 10 ); + } +    array argv;   int main(int argc, array tmp)   {    argv = tmp;    tmp = 0; -  + #ifdef AVERAGE_PROFILING +  call_out(show_avg_prof, 10 ); + #endif +     slowpipe = ((program)"base_server/slowpipe");    fastpipe = ((program)"base_server/fastpipe");    dump( "base_server/slowpipe.pike" );