Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

Is it possible to find pages that take the longest time to generate? I am aware Devel can collect query log per page, but is there a module that collects these per page and displays a list of slowest pages?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

The Performance Logging and Monitoring module was split out from the Devel module last summer, but is mostly the same.

The summary logging page is sortable by all of the table columns. For example, if you want to show the slowest pages first, you just need to click on the "MS (MAX)" column heading until it sorts descending. The direct URL would be at /admin/reports/performance-logging/summary?sort=desc&order=ms+%28Max%29

You can also do a manual query on the database if that is where you are storing results:

SELECT *
FROM {performance_summary} performance_summary
ORDER BY ms_max DESC
share|improve this answer

This is a roundabout way of getting at the data, but if you have Google Analytics setup on your site, it's also possibly the fastest and easiest. Specifically, check out the Site Speed reports.

GA uses the new "HTML5 Navigation Timing" spec, which allows it to track server response time, latency between server and client, as well as the actual browser execution time.. and you can slice and dice the data by any of those dimensions.

share|improve this answer
    
Thanks this is a great answer as well, I would mark this as well as an accepted response if I could do so. –  giorgio79 Mar 29 '12 at 18:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.