diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-07-25 13:40:05 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-07-25 13:40:05 +0000 |
commit | 356facf4afc9c3cea3d6648923f69daba9e1ec82 (patch) | |
tree | c7d3fc15dade605244f2df6b0b4fe3bec217d5c9 /sapi/apache_hooks/mod_php5.c | |
parent | 0a95528fc042143f00567deb54e7174e8881204f (diff) | |
download | php-git-356facf4afc9c3cea3d6648923f69daba9e1ec82.tar.gz |
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.
Diffstat (limited to 'sapi/apache_hooks/mod_php5.c')
-rw-r--r-- | sapi/apache_hooks/mod_php5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache_hooks/mod_php5.c b/sapi/apache_hooks/mod_php5.c index 5ef0181e7d..fcdb4d44f7 100644 --- a/sapi/apache_hooks/mod_php5.c +++ b/sapi/apache_hooks/mod_php5.c @@ -742,7 +742,7 @@ static int send_parsed_php(request_rec * r) char *mem_usage; TSRMLS_FETCH(); - mem_usage = ap_psprintf(r->pool, "%u", zend_memory_peak_usage(TSRMLS_C)); + mem_usage = ap_psprintf(r->pool, "%u", zend_memory_peak_usage(1 TSRMLS_CC)); ap_table_setn(r->notes, "mod_php_memory_usage", mem_usage); } #endif |