You are here

function performance_log_details in Performance Logging and Monitoring 5

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

File

./performance.module, line 312

Code

function performance_log_details($params = array()) {
  global $user;
  $anon = $user->uid ? FALSE : TRUE;
  db_query("INSERT INTO {performance_detail} (title, path, anon, bytes, millisecs, timestamp, query_timer, query_count) VALUES ('%s', '%s', %d, %d, %d, %d, %d, %d)", strip_tags(drupal_get_title()), $params['path'], $anon, $params['mem'], $params['timer'], time(), $params['query_timer'], $params['query_count']);
}