diff options
-rwxr-xr-x | tests/src/com/android/camera/stress/ImageCapture.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/src/com/android/camera/stress/ImageCapture.java b/tests/src/com/android/camera/stress/ImageCapture.java index e5d8679..49e8d41 100755 --- a/tests/src/com/android/camera/stress/ImageCapture.java +++ b/tests/src/com/android/camera/stress/ImageCapture.java @@ -156,8 +156,10 @@ public class ImageCapture extends ActivityInstrumentationTestCase2 <Camera> { } public boolean validateMemoryResult (int startPid, int startMemory, Writer output) throws Exception { + Thread.sleep(20000); mEndPid = getMediaserverPid(); mEndMemory = getMediaserverVsize(); + output.write("Start Memory = " + startMemory + "\n"); Log.v(TAG, "End memory :" + mEndMemory); //Write the total memory different into the output file output.write("The total diff = " + (mEndMemory - startMemory)); |