diff options
author | Guang Zhu <guangzhu@google.com> | 2009-07-17 14:22:24 -0700 |
---|---|---|
committer | Guang Zhu <guangzhu@google.com> | 2009-07-17 14:22:24 -0700 |
commit | 1f6c72bff6fa875a08f2d5510b5a61ce766643d2 (patch) | |
tree | c4872a921cdc9684d3056f51ff598748ee3a8e8a /tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java | |
parent | 09a903ab5b8d940605783ae4ee591c0f090a31d1 (diff) | |
download | frameworks_base-1f6c72bff6fa875a08f2d5510b5a61ce766643d2.zip frameworks_base-1f6c72bff6fa875a08f2d5510b5a61ce766643d2.tar.gz frameworks_base-1f6c72bff6fa875a08f2d5510b5a61ce766643d2.tar.bz2 |
Add a delay before collecting memory information
Hopefully this gives enough time for more memory recycling. Because it is observed that several seconds after a suite is run, the memory usage could drop by 1-2M.
Diffstat (limited to 'tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java')
-rw-r--r-- | tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java b/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java index 39bbf16..ba46197 100644 --- a/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java +++ b/tests/DumpRenderTree/src/com/android/dumprendertree/LoadTestsAutoTest.java @@ -73,6 +73,10 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel runTestAndWaitUntilDone(activity, runner.mTestPath, runner.mTimeoutInMillis); activity.clearCache(); + try { + Thread.sleep(5000); + } catch (InterruptedException e) { + } dumpMemoryInfo(); // Kill activity |