Bug 722368 - Report slow SQL created from dynamic strings to Telemetry. r=taras
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user