Merge "Merge "Fix ZipFilePerfTest issues by closing the file in each loop iteration." am: 90c3935195 am: 9c051367f8 am: 4c2143df58 am: 10eceff1b1 am: b90b509fc7" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
12e599047c
@@ -70,6 +70,9 @@ public class ZipFilePerfTest {
|
|||||||
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
|
||||||
while (state.keepRunning()) {
|
while (state.keepRunning()) {
|
||||||
ZipFile zf = new ZipFile(mFile);
|
ZipFile zf = new ZipFile(mFile);
|
||||||
|
state.pauseTiming();
|
||||||
|
zf.close();
|
||||||
|
state.resumeTiming();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user