mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
fix(benchmark): adjust for API changes
This commit is contained in:
parent
3eeb947914
commit
6e1858a55e
1 changed files with 1 additions and 4 deletions
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
package dev.msfjarvis.claw.benchmark
|
package dev.msfjarvis.claw.benchmark
|
||||||
|
|
||||||
import androidx.benchmark.macro.ExperimentalStableBaselineProfilesApi
|
|
||||||
import androidx.benchmark.macro.junit4.BaselineProfileRule
|
import androidx.benchmark.macro.junit4.BaselineProfileRule
|
||||||
import androidx.test.platform.app.InstrumentationRegistry
|
import androidx.test.platform.app.InstrumentationRegistry
|
||||||
import androidx.test.uiautomator.UiDevice
|
import androidx.test.uiautomator.UiDevice
|
||||||
|
@ -14,7 +13,6 @@ import org.junit.Before
|
||||||
import org.junit.Rule
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
|
||||||
@OptIn(ExperimentalStableBaselineProfilesApi::class)
|
|
||||||
class BaselineProfileGenerator {
|
class BaselineProfileGenerator {
|
||||||
@get:Rule val baselineProfileRule = BaselineProfileRule()
|
@get:Rule val baselineProfileRule = BaselineProfileRule()
|
||||||
private lateinit var device: UiDevice
|
private lateinit var device: UiDevice
|
||||||
|
@ -27,9 +25,8 @@ class BaselineProfileGenerator {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun generateBaselineProfile() =
|
fun generateBaselineProfile() =
|
||||||
baselineProfileRule.collectStableBaselineProfile(
|
baselineProfileRule.collectBaselineProfile(
|
||||||
packageName = PACKAGE_NAME,
|
packageName = PACKAGE_NAME,
|
||||||
stableIterations = 2,
|
|
||||||
maxIterations = 8,
|
maxIterations = 8,
|
||||||
) {
|
) {
|
||||||
startActivityAndWait()
|
startActivityAndWait()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue