note 71930 modified in function.memory-get-usage by danbrown

From: Date: Sun, 20 Jul 2008 00:46:20 +0000
Subject: note 71930 modified in function.memory-get-usage by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141863@lists.php.net to get a copy of this message
the various memory_get_usage replacements here don't seem to work on Mac OS X 10.4(Intel) I got it to work like this... <?php function memory_get_usage() { $pid = getmypid(); exec("ps -o rss -p $pid", $output); return $output[1] *1024; } ?> --was-- the various memory_get_usage replacements here don't seem to work on Mac OS X 10.4(Intel) I got it to work like this... function memory_get_usage() { $pid = getmypid(); exec("ps -o rss -p $pid", $output); return $output[1] *1024; } http://php.net/manual/en/function.memory-get-usage.php

« previous php.notes (#141863) next »