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

2:   //   // Some stuff to do logging of a request through the server.   // - // $Id: request_trace.h,v 1.4 2000/08/14 18:54:20 mast Exp $ + // $Id: request_trace.h,v 1.5 2001/05/07 02:48:36 per Exp $      #ifdef REQUEST_TRACE   
24:    }while(0)      #endif +  +  + #ifdef AVERAGE_PROFILING + #define PROF_ENTER(X,Y) id->conf->avg_prof_enter( X, Y, id ) + #define PROF_LEAVE(X,Y) id->conf->avg_prof_leave( X, Y, id ) + #define COND_PROF_ENTER(X,Y,Z) if(X)PROF_ENTER(Y,Z) + #define COND_PROF_LEAVE(X,Y,Z) if(X)PROF_LEAVE(Y,Z) + #else + #define PROF_ENTER(X,Y) + #define PROF_LEAVE(X,Y) + #define COND_PROF_ENTER(X,Y,Z) + #define COND_PROF_LEAVE(X,Y,Z) + #endif