Improve timing of query methods.
This commit is contained in:
parent
e351a0b235
commit
ab9ecff4d4
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue