diff options
Diffstat (limited to 'core/java/android/os/Looper.java')
-rw-r--r-- | core/java/android/os/Looper.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/core/java/android/os/Looper.java b/core/java/android/os/Looper.java index a06aadb..02135bc 100644 --- a/core/java/android/os/Looper.java +++ b/core/java/android/os/Looper.java @@ -127,29 +127,17 @@ public class Looper { return; } - long wallStart = 0; - long threadStart = 0; - // This must be in a local variable, in case a UI event sets the logger Printer logging = me.mLogging; if (logging != null) { logging.println(">>>>> Dispatching to " + msg.target + " " + msg.callback + ": " + msg.what); - wallStart = SystemClock.currentTimeMicro(); - threadStart = SystemClock.currentThreadTimeMicro(); } msg.target.dispatchMessage(msg); if (logging != null) { - long wallTime = SystemClock.currentTimeMicro() - wallStart; - long threadTime = SystemClock.currentThreadTimeMicro() - threadStart; - logging.println("<<<<< Finished to " + msg.target + " " + msg.callback); - if (logging instanceof Profiler) { - ((Profiler) logging).profile(msg, wallStart, wallTime, - threadStart, threadTime); - } } // Make sure that during the course of dispatching the @@ -290,12 +278,4 @@ public class Looper { public String toString() { return "Looper{" + Integer.toHexString(System.identityHashCode(this)) + "}"; } - - /** - * @hide - */ - public static interface Profiler { - void profile(Message message, long wallStart, long wallTime, - long threadStart, long threadTime); - } } |