Hello !
in linux, read the /proc/self(pid)/status, and the VmRSS(real memory usage) or VmSize(virtual memory usage) is the the memory usage of the current process.in fact I was looking of a cleaner way to do it.
Moreover, this solution is not available on OS like *BSD...
Best regards, Fred. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php