public void collectDbStats(ArrayList<com.couchbase.lite.internal.database.sqlite.SQLiteDebug.DbStats> dbStatsList) {
        synchronized (mLock) {
            if (mAvailablePrimaryConnection != null) {
                mAvailablePrimaryConnection.collectDbStats(dbStatsList);
            }

            for (SQLiteConnection connection : mAvailableNonPrimaryConnections) {
                connection.collectDbStats(dbStatsList);
            }

            for (SQLiteConnection connection : mAcquiredConnections.keySet()) {
                connection.collectDbStatsUnsafe(dbStatsList);
            }
        }
    }
public void collectDbStats ( ArrayList < com . couchbase . lite . internal . database . sqlite . SQLiteDebug . DbStats > dbStatsList ) { synchronized ( mLock ) { if ( mAvailablePrimaryConnection != null ) { mAvailablePrimaryConnection . collectDbStats ( dbStatsList ) ; } for ( SQLiteConnection connection : mAvailableNonPrimaryConnections ) { connection . collectDbStats ( dbStatsList ) ; } for ( SQLiteConnection connection : mAcquiredConnections . keySet ( ) ) { connection . collectDbStatsUnsafe ( dbStatsList ) ; } } }
Collects statistics about database connection memory usage.

@param dbStatsList The list to populate.