mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Debug info: fts stats
This commit is contained in:
@@ -2848,6 +2848,13 @@ public class Log {
|
||||
if (cursor.moveToNext())
|
||||
size += write(os, String.format("sqlite: %s\r\n", cursor.getString(0)));
|
||||
}
|
||||
try {
|
||||
TupleFtsStats stats = db.message().getFts();
|
||||
size += write(os, String.format("fts: %d/%d %s\r\n", stats.fts, stats.total,
|
||||
Helper.humanReadableByteCount(Fts4DbHelper.size(context))));
|
||||
} catch (Throwable ex) {
|
||||
size += write(os, String.format("%s\r\n", ex));
|
||||
}
|
||||
|
||||
size += write(os, "\r\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user