Get baseline profiles working
This commit is contained in:
parent
e41688e5c8
commit
6942200d45
File diff suppressed because it is too large
Load Diff
@ -27,7 +27,7 @@ guava = "com.google.guava:guava:31.1-android"
|
||||
paging-runtime = "androidx.paging:paging-runtime:3.1.1"
|
||||
paging-compose = "androidx.paging:paging-compose:1.0.0-alpha17"
|
||||
|
||||
benchmark-macro = "androidx.benchmark:benchmark-macro-junit4:1.1.1"
|
||||
benchmark-macro = "androidx.benchmark:benchmark-macro-junit4:1.2.0-alpha13"
|
||||
test-ext = "androidx.test.ext:junit-ktx:1.1.5"
|
||||
test-espresso-core = "androidx.test.espresso:espresso-core:3.5.1"
|
||||
test-uiautomator = "androidx.test.uiautomator:uiautomator:2.2.0"
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user