--- parser3/src/targets/cgi/parser3.C 2001/04/25 10:25:37 1.72 +++ parser3/src/targets/cgi/parser3.C 2001/05/15 10:48:53 1.77 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: parser3.C,v 1.72 2001/04/25 10:25:37 paf Exp $ + $Id: parser3.C,v 1.77 2001/05/15 10:48:53 parser Exp $ */ #include "pa_config_includes.h" @@ -15,8 +15,8 @@ #endif #include "pa_sapi.h" +#include "classes.h" #include "pa_common.h" -#include "pa_globals.h" #include "pa_request.h" #include "pa_socks.h" #include "pa_version.h" @@ -173,6 +173,8 @@ int main(int argc, char *argv[]) { // init socks init_socks(pool); + // init global classes + init_methoded_array(pool); // init global variables pa_globals_init(pool); @@ -249,7 +251,7 @@ int main(int argc, char *argv[]) { // prepare to process request Request request(pool, request_info, - cgi ? String::UL_HTML_TYPO : String::UL_AS_IS + cgi ? String::UL_USER_HTML : String::UL_AS_IS ); // some root-controlled location @@ -276,6 +278,13 @@ int main(int argc, char *argv[]) { // done_socks(); + extern size_t malloc_total, calloc_total; + extern size_t malloc_times, calloc_times; + SAPI::log(pool, + "malloc %d/%d, calloc %d/%d", + malloc_total, malloc_times, + calloc_total, calloc_times); + // must be last in PTRY{}PCATCH #ifdef WIN32 SetUnhandledExceptionFilter(0);