LeakTrackingTestConfig.retainingPath constructor
- LeakDiagnosticConfig leakDiagnosticConfig = const LeakDiagnosticConfig(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 to collect retaining path.
This configuration will not collect stack traces, and will collect retaining path for notGCed objects.
Implementation
const LeakTrackingTestConfig.retainingPath({
this.leakDiagnosticConfig = const LeakDiagnosticConfig(
collectRetainingPathForNotGCed: true,
),
this.notGCedAllowList = const <String, int>{},
this.notDisposedAllowList = const <String, int>{},
this.allowAllNotDisposed = false,
this.allowAllNotGCed = false,
this.baselining,
this.isLeakTrackingPaused = false,
});