note 37340 modified in function.memory-get-usage by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 00:51:01 +0000 |
| Subject: | note 37340 modified in function.memory-get-usage by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141866@lists.php.net to get a copy of this message | ||
To get this in pre-4.3.2 do (works on unix like systems only):
$my_pid = getmypid();
error_log("MEMORY USAGE (% KB PID ): ".
ps -eo%mem,rss,pid | grep $my_pid);
found this tip somewhere in bugs.php.net!
--was--
To get this in pre 4.2.3 do a (works on unix like systems only):
$my_pid = getmypid();
error_log("MEMORY USAGE (% KB PID ): ".ps -eo%mem,rss,pid | grep $my_pid);
found this tip somewhere in bugs.php.net!
http://php.net/manual/en/function.memory-get-usage.php