Re: [PHP-DEV] memory usage

2003-01-31 Thread Adam Maccabee Trachtenberg
On 31 Jan 2003, Walt Boring wrote:

 Is there a way for me to log the peak memory usage for a php script for
 php 4.3.0 ?

If PHP is built with the --enable-memory-limit configuration option, it
stores the peak memory usage of each request in a note called
mod_php_memory_usage. Add the memory usage information to a LogFormat
with: 

%{mod_php_memory_usage}n

-adam

-- 
[EMAIL PROTECTED]
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] memory usage

2003-01-31 Thread Adam Maccabee Trachtenberg
On Fri, 31 Jan 2003, Adam Maccabee Trachtenberg wrote:

 If PHP is built with the --enable-memory-limit configuration option, it
 stores the peak memory usage of each request in a note called
 mod_php_memory_usage. Add the memory usage information to a LogFormat
 with: 
 
 %{mod_php_memory_usage}n

Er... by note I mean Apache note and LogFormat is for Apache's
access log.

-adam


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php