Get baseline profiles working

This commit is contained in:
Jobobby04
2023-04-16 16:15:26 -04:00
parent e41688e5c8
commit 6942200d45
3 changed files with 13064 additions and 15941 deletions
@@ -1,12 +1,11 @@
package tachiyomi.macrobenchmark
import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
import androidx.benchmark.macro.junit4.BaselineProfileRule
import androidx.test.uiautomator.By
import org.junit.Rule
import org.junit.Test
@OptIn(ExperimentalBaselineProfilesApi::class)
// @OptIn(ExperimentalBaselineProfilesApi::class)
class BaselineProfileGenerator {
@get:Rule
@@ -14,7 +13,7 @@ class BaselineProfileGenerator {
@Test
fun generate() = baselineProfileRule.collectBaselineProfile(
packageName = "eu.kanade.tachiyomi.benchmark",
packageName = "eu.kanade.tachiyomi.sy.benchmark",
profileBlock = {
pressHome()
startActivityAndWait()