Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66813285 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Add slow query log for "open".

Bug: 111939259
Test: executed apps with slow query log enabled and check logcat output.
Change-Id: I803822cb06ed03fce10a45cc1498eaa951990688
parent 88ee680e
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -208,10 +208,15 @@ public final class SQLiteConnection implements CancellationSignal.OnCancelListen
    }

    private void open() {
        final int cookie = mRecentOperations.beginOperation("open", null, null);
        try {
            mConnectionPtr = nativeOpen(mConfiguration.path, mConfiguration.openFlags,
                    mConfiguration.label,
                    SQLiteDebug.Consts.DEBUG_SQL_STATEMENTS, SQLiteDebug.Consts.DEBUG_SQL_TIME,
                    mConfiguration.lookasideSlotSize, mConfiguration.lookasideSlotCount);
        } finally {
            mRecentOperations.endOperation(cookie);
        }
        setPageSize();
        setForeignKeyModeFromConfiguration();
        setWalModeFromConfiguration();