Where I can see how much resources each page has used in Kloxo?

105 views Asked by At

I need to see how much each page has used resources and what page is the biggest resource taker. Thank you.

1

There are 1 answers

0
mario On BEST ANSWER

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_trigger allows you to trigger it individually for each request with and &XDEBUG_PROFILE=1 parameter. 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