mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 22:17:03 +05:30
parent
c4aad66c03
commit
cef05306ba
1 changed files with 3 additions and 3 deletions
|
@ -18,14 +18,14 @@ import leakcanary.repeatingAndroidInProcessScenario
|
||||||
import org.junit.jupiter.api.BeforeEach
|
import org.junit.jupiter.api.BeforeEach
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.junit.jupiter.api.extension.RegisterExtension
|
import org.junit.jupiter.api.extension.RegisterExtension
|
||||||
import shark.ObjectGrowthDetector
|
import shark.HeapDiff
|
||||||
import shark.forAndroidHeap
|
|
||||||
|
|
||||||
class HeapGrowthCheck {
|
class HeapGrowthCheck {
|
||||||
@JvmField
|
@JvmField
|
||||||
@RegisterExtension
|
@RegisterExtension
|
||||||
|
@Suppress("Unused")
|
||||||
val scenarioExtension = ActivityScenarioExtension.launch<MainActivity>()
|
val scenarioExtension = ActivityScenarioExtension.launch<MainActivity>()
|
||||||
private val detector = ObjectGrowthDetector.forAndroidHeap().repeatingAndroidInProcessScenario()
|
private val detector = HeapDiff.repeatingAndroidInProcessScenario()
|
||||||
private lateinit var device: UiDevice
|
private lateinit var device: UiDevice
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue