function performance_boot in Performance Logging and Monitoring 7.2
Same name and namespace in other branches
- 6.2 performance.module \performance_boot()
- 6 performance.module \performance_boot()
- 7 performance.module \performance_boot()
Implements hook_boot().
File
- ./
performance.module, line 239 - 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)) {
@(include_once DRUPAL_ROOT . '/includes/database/log.inc');
Database::startLog('performance', 'default');
}
}