Bug 722368 - Report slow SQL created from dynamic strings to Telemetry. r=taras

This commit is contained in:
Vladan Djeric
2012-03-21 13:26:48 -04:00
parent d40e52a537
commit 2a5b658be4
6 changed files with 167 additions and 44 deletions

View File

@@ -146,15 +146,16 @@ bool CanRecord();
/**
* Records slow SQL statements for Telemetry reporting.
* For privacy reasons, only prepared statements are reported.
*
* @param statement - offending SQL statement to record
* @param dbName - DB filename; reporting is only done for whitelisted DBs
* @param dbName - DB filename
* @param delay - execution time in milliseconds
* @param isDynamicString - prepared statement or a dynamic string
*/
void RecordSlowSQLStatement(const nsACString &statement,
const nsACString &dbName,
PRUint32 delay);
PRUint32 delay,
bool isDynamicString);
/**
* Threshold for a statement to be considered slow, in milliseconds