You are here

function performance_clear_db in Performance Logging and Monitoring 7

Same name and namespace in other branches
  1. 6 performance.module \performance_clear_db()

Clear database confirm form submit handler.

File

./performance.module, line 917
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_clear_db() {

  // Can't use TRUNCATE as this permission is not neccessarily given.
  db_delete('performance_summary')
    ->execute();
  db_delete('performance_detail')
    ->execute();
}