function performance_clear_db in Performance Logging and Monitoring 6
Same name and namespace in other branches
- 7 performance.module \performance_clear_db()
Clear database confirm form submit handler.
File
- ./
performance.module, line 910 - 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_query('DELETE FROM {performance_summary}');
db_query('DELETE FROM {performance_detail}');
}