Repeating Scenario Object Growth Detector
Functions
Link copied to clipboard
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.