diff options
author | Yu Shan Emily Lau <yslau@google.com> | 2009-10-15 18:04:48 -0700 |
---|---|---|
committer | Yu Shan Emily Lau <yslau@google.com> | 2009-10-15 18:12:37 -0700 |
commit | 7c176f507491ec32166417d87caf27e2766df91f (patch) | |
tree | 85b80ea62cc5dbb01d7613b4c3e7029d1dbca913 | |
parent | d10dda271e22fd312381eb3437b0541525498452 (diff) | |
download | packages_apps_LegacyCamera-7c176f507491ec32166417d87caf27e2766df91f.zip packages_apps_LegacyCamera-7c176f507491ec32166417d87caf27e2766df91f.tar.gz packages_apps_LegacyCamera-7c176f507491ec32166417d87caf27e2766df91f.tar.bz2 |
Insert the wait time before collecting the last memory usage for image capture.
-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)); |