mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Improve timing of query methods.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user