Improve timing of query methods.

This commit is contained in:
Greyson Parrelli 2024-05-01 11:14:28 -04:00
parent e351a0b235
commit ab9ecff4d4

View file

@ -110,6 +110,10 @@ public class SQLiteDatabase implements SupportSQLiteDatabase {
tracer.start(methodName, params);
E result = returnable.run();
if (result instanceof Cursor) {
// Triggers filling the window (which is about to be done anyway), but lets us capture that time inside the trace
((Cursor) result).getCount();
}
tracer.end(methodName);
if (locked) {