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/content/ContentResolver.java | |
| 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/content/ContentResolver.java')
| -rw-r--r-- | core/java/android/content/ContentResolver.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/content/ContentResolver.java b/core/java/android/content/ContentResolver.java index 45f361e9d73f..29f388ac1bea 100644 --- a/core/java/android/content/ContentResolver.java +++ b/core/java/android/content/ContentResolver.java @@ -167,9 +167,9 @@ public abstract class ContentResolver { /** @hide */ public static final int SYNC_OBSERVER_TYPE_ALL = 0x7fffffff; - // Always log queries which take 100ms+; shorter queries are + // Always log queries which take 500ms+; shorter queries are // sampled accordingly. - private static final int SLOW_THRESHOLD_MILLIS = 100; + private static final int SLOW_THRESHOLD_MILLIS = 500; private final Random mRandom = new Random(); // guarded by itself public ContentResolver(Context context) { |
