diff options
| author | Brad Fitzpatrick <bradfitz@android.com> | 2010-02-22 15:17:49 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@android.com> | 2010-02-22 15:17:49 -0800 |
| commit | 25880968cbde25c9edb162c0d70d45dc75239456 (patch) | |
| tree | d1ffd8aab7ba77a0138f29950b31d54fe6420ba0 /core/java/android/database | |
| parent | b09cc2cde25d02f668b8bc2115a9479425f48703 (diff) | |
Reduce SQLiteDatabase and ContentResolver EventLog logging thresholds.
Turns out the database is used a ton, and not particularly quickly, so
these were spamming the logs at their prior 100ms thresholds. Setting
it to 500ms now. (still sub-sampled, so should be ~5x less spammy...)
Diffstat (limited to 'core/java/android/database')
| -rw-r--r-- | core/java/android/database/sqlite/SQLiteDatabase.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/database/sqlite/SQLiteDatabase.java b/core/java/android/database/sqlite/SQLiteDatabase.java index 8fd8e280b9a6..c13dd23c449c 100644 --- a/core/java/android/database/sqlite/SQLiteDatabase.java +++ b/core/java/android/database/sqlite/SQLiteDatabase.java @@ -208,11 +208,11 @@ public class SQLiteDatabase extends SQLiteClosable { // Things related to query logging/sampling for debugging // slow/frequent queries during development. Always log queries - // which take 100ms+; shorter queries are sampled accordingly. + // which take 500ms+; shorter queries are sampled accordingly. // Commit statements, which are typically slow, are logged // together with the most recently executed SQL statement, for // disambiguation. - private static final int QUERY_LOG_TIME_IN_MILLIS = 100; + private static final int QUERY_LOG_TIME_IN_MILLIS = 500; private static final int QUERY_LOG_SQL_LENGTH = 64; private static final String COMMIT_SQL = "COMMIT;"; private final Random mRandom = new Random(); |
