mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 16:27:06 +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
|
||||
|
||||
import androidx.benchmark.macro.ExperimentalStableBaselineProfilesApi
|
||||
import androidx.benchmark.macro.junit4.BaselineProfileRule
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.uiautomator.UiDevice
|
||||
|
@ -14,7 +13,6 @@ import org.junit.Before
|
|||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
|
||||
@OptIn(ExperimentalStableBaselineProfilesApi::class)
|
||||
class BaselineProfileGenerator {
|
||||
@get:Rule val baselineProfileRule = BaselineProfileRule()
|
||||
private lateinit var device: UiDevice
|
||||
|
@ -27,9 +25,8 @@ class BaselineProfileGenerator {
|
|||
|
||||
@Test
|
||||
fun generateBaselineProfile() =
|
||||
baselineProfileRule.collectStableBaselineProfile(
|
||||
baselineProfileRule.collectBaselineProfile(
|
||||
packageName = PACKAGE_NAME,
|
||||
stableIterations = 2,
|
||||
maxIterations = 8,
|
||||
) {
|
||||
startActivityAndWait()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue