Taking a Snapshot of Memory Usage

From: Date: Thu, 26 Sep 2002 17:42:00 +0000
Subject: Taking a Snapshot of Memory Usage
Groups: php.general 
Request: Send a blank email to php-general+get-117754@lists.php.net to get a copy of this message
Hi, Is there any way of taking a snapshot of the current memory usage of a script? I tried the getrusage() function, but the PHP version doesn't seem to support all the options of the systems getrusage() system call. What I would like to do is take a snapshot of the memory usage before and after I make a call to a function, or create an object, so that I have an idea of where memory is being used by the script. Is this even possible under PHP? Any insight you can provide would be appreciated. -- Robert -- ------------------------------------------------------------------ Robert James Kaes --- Flarenet Inc. --- (519) 426-3782 http://www.flarenet.com/ * Putting the Service Back in Internet Service Provider * ------------------------------------------------------------------

« previous php.general (#117754) next »