Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76bc5f73 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't pause perftest timing while closing ZipFile between iterations"...

Merge "Don't pause perftest timing while closing ZipFile between iterations" into main am: 6d5cbfb0 am: 7621da1a

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3404507



Change-Id: I3b1102028604d19c5926eac08b256481a0219a8f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 87374811 7621da1a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -63,14 +63,12 @@ public class ZipFilePerfTest {

    @Test
    @Parameters(method = "getData")
    public void timeZipFileOpen(int numEntries) throws Exception {
    public void timeZipFileOpenClose(int numEntries) throws Exception {
        setUp(numEntries);
        BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
        while (state.keepRunning()) {
            ZipFile zf = new ZipFile(mFile);
            state.pauseTiming();
            zf.close();
            state.resumeTiming();
        }
    }