• 0

Sigs that display CPU/MEM usage


Question

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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.