fix(benchmark): simplify

This commit is contained in:
Harsh Shandilya 2022-12-21 15:03:05 +05:30
parent 058561e4d6
commit 350a64d479
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

@ -50,7 +50,7 @@ class BaselineProfileBenchmark {
startupMode = StartupMode.COLD, startupMode = StartupMode.COLD,
compilationMode = compilationMode compilationMode = compilationMode
) { ) {
exploreUI(device) startActivityAndWait()
} }
} }
} }

View file

@ -31,6 +31,6 @@ class BaselineProfileGenerator {
packageName = PACKAGE_NAME, packageName = PACKAGE_NAME,
maxIterations = 5, maxIterations = 5,
) { ) {
exploreUI(device) startActivityAndWait()
} }
} }

View file

@ -19,6 +19,7 @@ private const val NAV_ID_NEWEST = "NEWEST"
private const val NAV_ID_SAVED = "SAVED" private const val NAV_ID_SAVED = "SAVED"
private const val COMMENT_BUTTON_DESC = "Open comments" private const val COMMENT_BUTTON_DESC = "Open comments"
@Suppress("Unused")
fun MacrobenchmarkScope.exploreUI(device: UiDevice) { fun MacrobenchmarkScope.exploreUI(device: UiDevice) {
startActivityAndWait() startActivityAndWait()
device.run { device.run {