jwkuipers Posted April 18, 2003 Share Posted April 18, 2003 Just wondering how to make a sig that reports how much the cpu, mem, network, etc is being used in php? Also how do you display how long it took to generate a page? Thanks. Link to comment Share on other sites More sharing options...
0 Tim Dorr Veteran Posted April 19, 2003 Veteran Share Posted April 19, 2003 page generation time is easy. just get the microtime() at the beginning and the end of the page, then subtract. Not 100% accurate, but I supposed you can deal with it being 0.0001 seconds off... My sig pulls it's data from Coolmon over the SOAP interface it exposes. I use a PHP SOAP abstraction class to get the data, and then use the built-in gd_image library functions to build up the image. Oh, and the background to it all is from a real mac screenshot with just stuff on top of it (I whipped up something in interface builder for the purpose). Link to comment Share on other sites More sharing options...
Question
jwkuipers
Just wondering how to make a sig that reports how much the cpu, mem, network, etc is being used in php? Also how do you display how long it took to generate a page? Thanks.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts