repeatingJvmInProcessScenario

fun ObjectGrowthDetector.repeatingJvmInProcessScenario(maxHeapDumps: Int = RepeatingScenarioObjectGrowthDetector.DEFAULT_MAX_HEAP_DUMPS, scenarioLoopsPerDump: Int = RepeatingScenarioObjectGrowthDetector.IN_PROCESS_SCENARIO_LOOPS_PER_DUMP): RepeatingScenarioObjectGrowthDetector

Creates a RepeatingScenarioObjectGrowthDetector suitable for JVM in process tests. Typically called on a ObjectGrowthDetector created via shark.forJvmHeap.

Dumps the heap by leveraging Hotspot APIs, running an in process GC right before dumping. Deletes the heap dump file as soon as we're done traversing it.

See also

RepeatingScenarioObjectGrowthDetector.findRepeatedlyGrowingObjects