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

Commit 7621da1a 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

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



Change-Id: I3cafd44456bf313980403c774ec434dfbbf76a41
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents cc809f65 6d5cbfb0
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();
        }
    }