mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 709078 - Add logging for awesomebar query times. r=lucasr
This commit is contained in:
parent
21790739ea
commit
7de822afca
@ -622,7 +622,15 @@ public class AwesomeBarTabs extends TabHost {
|
||||
mAllPagesCursorAdapter.setFilterQueryProvider(new FilterQueryProvider() {
|
||||
public Cursor runQuery(CharSequence constraint) {
|
||||
ContentResolver resolver = mContext.getContentResolver();
|
||||
return BrowserDB.filter(resolver, constraint, MAX_RESULTS);
|
||||
long start = new Date().getTime();
|
||||
|
||||
Cursor c = BrowserDB.filter(resolver, constraint, MAX_RESULTS);
|
||||
c.getCount(); // ensure the query runs at least once
|
||||
|
||||
long end = new Date().getTime();
|
||||
Log.i(LOGTAG, "Got cursor in " + (end - start) + "ms");
|
||||
|
||||
return c;
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user