Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Not really... At least, not that easily...
What you are looking to is a profiler. PHP have a really good one existing.
Xdebug:
http://www.xdebug.org
The thing is that Xdebug must be installed on the server, as it's an extension of PHP, and if you use a shared server, you won't be able to install it.
But, couple it with wincachegrind ( windows: http://sourceforge.net/projects/wincachegrind) or Kcachegrind (linux: http://kcachegrind.sourceforge.net/cgi-bin/show.cgi ), and it will show you how much time is spend in which functions, and how many time those functions where called.
But what it shows you, is which share of the total run time was needed for a specific function, not how many pressure was put on the server.
For that, there is only 1 way as I know of: a load test.
Pratically, you send bots to your site, that will makes a lot of requests to emulate several user browsing your site at the same time, and you keep a server resources monitoring opened, to see how many requests/seconds uses how many resources.
This is especially true with services like apache, who are threaded, and for which you cannot know before you run which one correspond to each process.
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 09-28-2007 at 04:39 PM..
|