code: void collectDbStats(ArrayList<com.couchbase.lite.internal.database.sqlite.SQLiteDebug.DbStats> dbStatsList) {
          // Get information about the main database.
          int lookaside = nativeGetDbLookaside(mConnectionPtr);
          long pageCount = 0;
          long pageSize = 0;
          try {
              pageCount = executeForLong("PRAGMA page_count;", null, null);
              pageSize = executeForLong("PRAGMA page_size;", null, null);
          } catch (com.couchbase.lite.internal.database.sqlite.exception.SQLiteException ex) {
              // Ignore.
          }
          dbStatsList.add(getMainDbStatsUnsafe(lookaside, pageCount, pageSize));
      }
docs: Collects statistics about database connection memory usage.
  
  @param dbStatsList The list to populate.