[PHP] Possible to measure CPU and Ram used with PHP?

2002-01-29 Thread Jeff Lewis

Is it possible to measure the amount of RAM or CPU power used to process a
particular file written in PHP?  Can the values be grabbed and displayed
with PHP?

Jeff


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Possible to measure CPU and Ram used with PHP?

2002-01-29 Thread Jason Wong

On Wednesday 30 January 2002 03:10, Jeff Lewis wrote:
 Is it possible to measure the amount of RAM or CPU power used to process a
 particular file written in PHP?  Can the values be grabbed and displayed
 with PHP?


There's a function getrusage(). Not sure whether that'll do what you want.



-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
Practical politics consists in ignoring facts.
-- Henry Adams
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]