Re: Possible to measure CPU and Ram used with PHP?
| From: | Jason Wong | Date: | Tue, 29 Jan 2002 20:36:53 +0000 |
| Subject: | Re: Possible to measure CPU and Ram used with PHP? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82606@lists.php.net to get a copy of this message | ||
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
*/