Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS. - constant cvs_version = "$Id: configuration.pike,v 1.429 2001/05/07 02:48:33 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.430 2001/05/14 04:30:46 per Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:123: Inside #if defined(AVERAGE_PROFILING)
  mapping profiling_info = ([]);      void debug_write_prof( )   {    foreach( sort( indices( profiling_info ) ), string p )    profiling_info[p]->dump();   }      void add_prof_entry( RequestID id, string k, int hr, int hrv )   { -  if( !profiling_info[id->not_query] ) -  profiling_info[id->not_query] = ProfInfo(id->not_query); -  profiling_info[id->not_query]->add( k, hr, hrv ); +  string l = id->not_query; +  if( has_prefix( k, "find_internal" ) ) l = dirname(l); +  if( !profiling_info[l] ) profiling_info[l] = ProfInfo(l); +  profiling_info[l]->add( k, hr, hrv );   }      void avg_prof_enter( string name, string type, RequestID id )   {    if( !id->misc->prof_stack )    id->misc->prof_stack = ProfStack();    id->misc->prof_stack->enter( name+":"+type,id );   }   void avg_prof_leave( string name, string type, RequestID id )   {