You are here

function performance_log_details in Performance Logging and Monitoring 6

Same name and namespace in other branches
  1. 5 performance.module \performance_log_details()
  2. 6.2 includes/performance.details.inc \performance_log_details()
  3. 7.2 includes/performance.details.inc \performance_log_details()
  4. 7 performance.module \performance_log_details()

Helper function to store detailed data in database.

1 call to performance_log_details()
performance_shutdown in ./performance.module
Shutdown function that collects all performance data.

File

./performance.module, line 919
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_log_details($params = array()) {
  global $user;
  db_query("INSERT INTO {performance_detail}\n    (path, anon, bytes, ms, timestamp, query_timer, query_count, data)\n    VALUES ('%s', %d, %d, %d, %d, %d, %d, '%s')", $params['path'], $user->uid ? 0 : 1, $params['mem'], (int) $params['timer'], time(), (int) $params['query_timer'], $params['query_count'], $params['data']);
}