Jump to content


Photo

Determing cpu usage time with php timer?


  • Please log in to reply
1 reply to this topic

#1 dagnasty

dagnasty
  • Members
  • PipPipPip
  • Advanced Member
  • 66 posts

Posted 20 September 2006 - 05:41 PM

Recently my hosting provider 1and1 moved my site which consists of 1 script to an "auxillary server" for too much resource usage until i fix the problem or get a dedicated server. Since they don't provide resource usage stats I was wondering if timing the script a lot of times and getting the average time it takes to parse and multiplying it by the amount of time the script is run a day, could I get an estimate or anything close to the amount of CPU time my site uses?

Thanks,
Brian

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 20 September 2006 - 05:46 PM

You should be able to request some proof/advice from them about the usage, maybe they'll tell you about the calculations they use.

In the mean time, why not post your code with a title of 'suggestions for optimisation'.

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users