I need to see how much each page has used resources and what page is the biggest resource taker. Thank you.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So in essence you are looking for something like
mod_profiling? Don’t google. Fictional example. There is nothing like that.But if this is strictly about PHP pages you could very well setup xdebug and enable the profiler to auto-generate memory usage and runtime dumps. http://www.xdebug.org/docs/profiler
It’s best not to uniliterally enable this on a production system, but the configuration option
xdebug.profiler_enable_triggerallows you to trigger it individually for each request with and&XDEBUG_PROFILE=1parameter. Use http://www.xdebug.org/docs/all_settings#trace_output_name to set a per-page profiler output filename. As for evaluation, you have to go manually trough the pages to generate dumps, and manually inspect them (kcachegrind or similiar tools).You can see the runtime of mysql_queries() right there, but not the resource usage for the Mysql server itself. The convenient show-me-all profiling solution does not exist. Query optimization is again a programming task. http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html