diff options
author | Ficus Kirkpatrick <ficus@android.com> | 2015-07-07 00:32:56 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-07 00:32:56 +0000 |
commit | c899a33723ee81d649200bda628f580aafb51247 (patch) | |
tree | 229b37068c08a8e6df4131d1b920fb7c32abac04 | |
parent | 893e73fb34e5c1a427fa56841a42ddf0ae8898ff (diff) | |
parent | 4a1a74e57feff6ca45fa988f8a520765466a4d68 (diff) | |
download | volley-c899a33723ee81d649200bda628f580aafb51247.tar.gz |
am 4a1a74e5: am 2bffbe7e: Merge "Stop logging slow requests outside of debug logs."
* commit '4a1a74e57feff6ca45fa988f8a520765466a4d68':
Stop logging slow requests outside of debug logs.
-rw-r--r-- | src/main/java/com/android/volley/Request.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/main/java/com/android/volley/Request.java b/src/main/java/com/android/volley/Request.java index 9832952..5b42d1f 100644 --- a/src/main/java/com/android/volley/Request.java +++ b/src/main/java/com/android/volley/Request.java @@ -90,12 +90,6 @@ public abstract class Request<T> implements Comparable<Request<T>> { /** Whether or not a response has been delivered for this request yet. */ private boolean mResponseDelivered = false; - // A cheap variant of request tracing used to dump slow requests. - private long mRequestBirthTime = 0; - - /** Threshold at which we should log the request (even when debug logging is not enabled). */ - private static final long SLOW_REQUEST_THRESHOLD_MS = 3000; - /** The retry policy for this request. */ private RetryPolicy mRetryPolicy; @@ -209,8 +203,6 @@ public abstract class Request<T> implements Comparable<Request<T>> { public void addMarker(String tag) { if (MarkerLog.ENABLED) { mEventLog.add(tag, Thread.currentThread().getId()); - } else if (mRequestBirthTime == 0) { - mRequestBirthTime = SystemClock.elapsedRealtime(); } } @@ -241,11 +233,6 @@ public abstract class Request<T> implements Comparable<Request<T>> { mEventLog.add(tag, threadId); mEventLog.finish(this.toString()); - } else { - long requestTime = SystemClock.elapsedRealtime() - mRequestBirthTime; - if (requestTime >= SLOW_REQUEST_THRESHOLD_MS) { - VolleyLog.d("%d ms: %s", requestTime, this.toString()); - } } } |