summaryrefslogtreecommitdiffstats
path: root/dalvik
diff options
context:
space:
mode:
authorAnwar Ghuloum <anwarg@google.com>2014-09-24 16:39:50 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-09-24 16:39:51 +0000
commitd73625d5e0d1fd70966264cbc518c9177d4af848 (patch)
tree29f9b852fd03465834bd89e729bfda8b43d7cacc /dalvik
parent9252ce2bef667745ad23601d5ac25b435e6e77f5 (diff)
parent5467456d499d7f99c68252a7d72858d65608a190 (diff)
downloadlibcore-d73625d5e0d1fd70966264cbc518c9177d4af848.zip
libcore-d73625d5e0d1fd70966264cbc518c9177d4af848.tar.gz
libcore-d73625d5e0d1fd70966264cbc518c9177d4af848.tar.bz2
Merge "Revert "Timing hacks DO NOT MERGE"" into lmp-dev
Diffstat (limited to 'dalvik')
-rw-r--r--dalvik/src/main/java/dalvik/system/ZygoteHooks.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
index dc730e6..11ea286 100644
--- a/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
+++ b/dalvik/src/main/java/dalvik/system/ZygoteHooks.java
@@ -28,19 +28,6 @@ public final class ZygoteHooks {
private long token;
/**
- * Temporary hack: check time since start time and log if over a fixed threshold.
- *
- */
- private static void checkTime(long startTime, String where) {
- long now = System.nanoTime();
- long msDuration = (now - startTime) / (1000 * 1000);
- if (msDuration > 1000) {
- // If we are taking more than a second, log about it.
- System.logW("Slow operation: " + msDuration + "ms so far, now at " + where);
- }
- }
-
- /**
* Called by the zygote prior to every fork. Each call to {@code preFork}
* is followed by a matching call to {@link #postForkChild(int)} on the child
* process and {@link #postForkCommon()} on both the parent and the child
@@ -48,13 +35,9 @@ public final class ZygoteHooks {
* the child process.
*/
public void preFork() {
- long startTime = System.nanoTime();
Daemons.stop();
- checkTime(startTime, "ZygoteHooks.Daemons.stop");
waitUntilAllThreadsStopped();
- checkTime(startTime, "ZygoteHooks.waituntilallthreadsstopped");
token = nativePreFork();
- checkTime(startTime, "ZygoteHooks.Daemons.nativePreFork");
}
/**