New memory manager

This commit is contained in:
Dmitry Stogov 2006-07-18 09:08:06 +00:00
parent 6bcb0c9ed5
commit 6687f0377b
21 changed files with 1827 additions and 771 deletions

View file

@ -727,8 +727,7 @@ static int send_parsed_php(request_rec * r)
char *mem_usage;
TSRMLS_FETCH();
mem_usage = ap_psprintf(r->pool, "%u", AG(allocated_memory_peak));
AG(allocated_memory_peak) = 0;
mem_usage = ap_psprintf(r->pool, "%u", zend_memory_peak_usage(TSRMLS_C));
ap_table_setn(r->notes, "mod_php_memory_usage", mem_usage);
}
#endif