//leakcanary-repo/shark/RepeatingScenarioObjectGrowthDetector
RepeatingScenarioObjectGrowthDetector¶
interface RepeatingScenarioObjectGrowthDetector
See also¶
RepeatingScenarioObjectGrowthDetector.findRepeatedlyGrowingObjects |
Types¶
Name | Summary |
---|---|
Companion | [jvm] object Companion |
Functions¶
Name | Summary |
---|---|
findRepeatedlyGrowingObjects | [jvm] abstract fun findRepeatedlyGrowingObjects(maxHeapDumps: Int = DEFAULT_MAX_HEAP_DUMPS, scenarioLoopsPerDump: Int = DEFAULT_SCENARIO_LOOPS_PER_DUMP, roundTripScenario: () -> Unit): HeapDiff Detects object growth by iterating through roundTripScenario repeatedly and dumping the heap every scenarioLoopsPerDump until no object growth is detected or we reach maxHeapDumps. Returns the HeapDiff for the last iteration. You can check HeapDiff.isGrowing and HeapDiff.growingObjects to report object growth. |