LeakTrackingTestConfig.debugNotGCed constructor
- LeakDiagnosticConfig leakDiagnosticConfig = const LeakDiagnosticConfig(collectStackTraceOnDisposal: true, collectRetainingPathForNotGCed: true),
- Map<
String, int?> notGCedAllowList = const <String, int>{}, - Map<
String, int?> notDisposedAllowList = const <String, int>{}, - bool allowAllNotDisposed = false,
- bool allowAllNotGCed = false,
- MemoryBaselining? baselining,
- bool isLeakTrackingPaused = false,
Creates a new instance for debugging notGCed leaks.
This configuration will collect stack traces on disposal, and the objects' retaining paths for notGCed objects.
Implementation
LeakTrackingTestConfig.debugNotGCed({
this.leakDiagnosticConfig = const LeakDiagnosticConfig(
collectStackTraceOnDisposal: true,
collectRetainingPathForNotGCed: true,
),
this.notGCedAllowList = const <String, int>{},
this.notDisposedAllowList = const <String, int>{},
this.allowAllNotDisposed = false,
this.allowAllNotGCed = false,
this.baselining,
this.isLeakTrackingPaused = false,
});