function performance_boot in Performance Logging and Monitoring 7
Same name and namespace in other branches
- 6.2 performance.module \performance_boot()
- 6 performance.module \performance_boot()
- 7.2 performance.module \performance_boot()
Implementation of hook_boot().
File
- ./
performance.module, line 298 - Logs detailed and/or summary page generation time and memory consumption for page requests. Copyright Khalid Baheyeldin 2008 of http://2bits.com
Code
function performance_boot() {
register_shutdown_function('performance_shutdown');
if (variable_get(PERFORMANCE_QUERY_VAR, 0)) {
//TODO: See if devel.module has changed this ...
@(include_once DRUPAL_ROOT . '/includes/database/log.inc');
Database::startLog('performance', 'default');
}
}