defaultNumberOfGcCycles top-level constant
The default value for number of full GC cycles, enough for a non reachable object to be GCed.
It is pessimistic assuming that user will want to detect leaks not more often than a second.
Theoretically, 2 should be enough, however it gives false positives if there is no activity in the application for ~5 minutes.
Implementation
const defaultNumberOfGcCycles = 3;