Merge "Fix ZipFilePerfTest issues by closing the file in each loop iteration." am: 90c3935195 am: 9c051367f8 am: 4c2143df58 am: 10eceff1b1 am: b90b509fc7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2096495 Change-Id: I5f7b1c7f88ae0340c52ebad56132ec0f1d042e20 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -70,6 +70,9 @@ public class ZipFilePerfTest {
|
||||
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
||||
while (state.keepRunning()) {
|
||||
ZipFile zf = new ZipFile(mFile);
|
||||
state.pauseTiming();
|
||||
zf.close();
|
||||
state.resumeTiming();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user