зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1464310 - Add profiler stack labels which contain the sql string when statements are executed or stepped. r=mak
MozReview-Commit-ID: 3ucqNlHTqCw --HG-- extra : rebase_source : 404a19f170871ddacfbc15f395f96759b6c0eef1
This commit is contained in:
Родитель
3cc8e2ded1
Коммит
3b10561929
|
@ -1166,6 +1166,10 @@ int
|
|||
Connection::stepStatement(sqlite3 *aNativeConnection, sqlite3_stmt *aStatement)
|
||||
{
|
||||
MOZ_ASSERT(aStatement);
|
||||
|
||||
AUTO_PROFILER_LABEL_DYNAMIC_CSTR("Connection::stepStatement", OTHER,
|
||||
::sqlite3_sql(aStatement));
|
||||
|
||||
bool checkedMainThread = false;
|
||||
TimeStamp startTime = TimeStamp::Now();
|
||||
|
||||
|
@ -1279,6 +1283,8 @@ Connection::executeSql(sqlite3 *aNativeConnection, const char *aSqlString)
|
|||
if (!isConnectionReadyOnThisThread())
|
||||
return SQLITE_MISUSE;
|
||||
|
||||
AUTO_PROFILER_LABEL_DYNAMIC_CSTR("Connection::executeSql", OTHER, aSqlString);
|
||||
|
||||
TimeStamp startTime = TimeStamp::Now();
|
||||
int srv = ::sqlite3_exec(aNativeConnection, aSqlString, nullptr, nullptr,
|
||||
nullptr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче