function performance_log_details in Performance Logging and Monitoring 6.2
Same name and namespace in other branches
- 5 performance.module \performance_log_details()
- 6 performance.module \performance_log_details()
- 7.2 includes/performance.details.inc \performance_log_details()
- 7 performance.module \performance_log_details()
Helper function to store detailed data in database.
Parameters
$params: an array containing the following keys: mem, timer, query_count, query_timer anon, path, language, data.
Return value
void
1 call to performance_log_details()
- performance_shutdown in ./
performance.module - Shutdown function that collects all performance data.
File
- includes/
performance.details.inc, line 17 - Performance module detail logging related functions. Can be overridden by adding $conf['performance_detail_logging'] = 'path/to/your/file' in settings.php.
Code
function performance_log_details($params = array()) {
db_query("INSERT INTO {performance_detail}\n (path, anon, bytes, ms, timestamp, query_timer, query_count, language, data)\n VALUES ('%s', %d, %d, %d, %d, %d, %d, '%s', '%s')", $params['path'], $params['anon'], $params['mem'], (int) $params['timer'], time(), (int) $params['query_timer'], $params['query_count'], $params['language'], $params['data']);
}