mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Changed memory_get_usage() and memory_get_peak_usage(). Optional boolean argument allows get memory size allocated by emalloc() (by default) or real size of memory allocated from system.
This commit is contained in:
parent
e05efeaff5
commit
61d39cf1c1
7 changed files with 80 additions and 30 deletions
|
@ -593,7 +593,7 @@ zend_first_try {
|
|||
{
|
||||
char *mem_usage;
|
||||
|
||||
mem_usage = apr_psprintf(ctx->r->pool, "%u", zend_memory_peak_usage(TSRMLS_C));
|
||||
mem_usage = apr_psprintf(ctx->r->pool, "%u", zend_memory_peak_usage(1 TSRMLS_CC));
|
||||
apr_table_set(r->notes, "mod_php_memory_usage", mem_usage);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue