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/apache2handler/sapi_apache2.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/apache2handler/sapi_apache2.c')
| -rw-r--r-- | sapi/apache2handler/sapi_apache2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index f2c4956e8b..bed3a5a973 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -598,7 +598,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 |
