Annotation of parser3/src/targets/cgi/pa_pool.C, revision 1.5
1.4 paf 1: /** @file
2: Parser: CGI memory manager impl.
3:
1.1 paf 4: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.4 paf 5:
1.1 paf 6: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
7:
1.5 ! parser 8: $Id: pa_pool.C,v 1.4 2001/04/26 15:09:13 paf Exp $
1.1 paf 9: */
10:
11: #include <stdlib.h>
12:
13: #include "pa_pool.h"
14:
1.5 ! parser 15: size_t malloc_total=0, calloc_total=0;
! 16: size_t malloc_times=0, calloc_times=0;
! 17:
1.1 paf 18: void *Pool::real_malloc(size_t size) {
1.5 ! parser 19: malloc_total+=size;
! 20: malloc_times++;
1.1 paf 21: return ::malloc(size);
22: }
23:
24: void *Pool::real_calloc(size_t size) {
1.5 ! parser 25: calloc_total+=size;
! 26: calloc_times++;
1.1 paf 27: return ::calloc(size, 1);
28: }
E-mail: