Developers now have the option of seeing live benchmarks for the init and run phase of any module. This can be very useful for optimizing pages and for debugging purposes.
As long as you have your IP address listed in error_handler_settings.php, you should see a link "enable benchmarks" at the bottom of any page. Any template that extends the default template should inherit this functionality.
To make these changes, these files have minor tweaks:
If you have overloaded either run_section or load_modules (neither should be overloaded in most cases) in a custom template, you may not get benchmarks, but it should be easy to add the necessary code ... just use the template methods:
We might consider making a reference to the benchmark timer available to modules as well so they can also add benchmarks, but that is beyond the scope of this tweak, which aims simply to give developers a new useful tool for identifiying and optimizing slow modules.