LeakTrackingConfig class

Leak tracking configuration.

Contains settings that cannot be changed after leak tracking is started.

Constructors

LeakTrackingConfig({bool stdoutLeaks = true, bool notifyDevTools = true, LeakSummaryCallback? onLeaks, Duration? checkPeriod = const Duration(seconds: 1), Duration disposalTime = const Duration(milliseconds: 100), int numberOfGcCycles = defaultNumberOfGcCycles, int? maxRequestsForRetainingPath = 10})
const
LeakTrackingConfig.passive({int numberOfGcCycles = defaultNumberOfGcCycles, Duration disposalTime = const Duration(), int? maxRequestsForRetainingPath = 10})
The leak_tracker:

Properties

checkPeriod Duration?
Period to check for leaks.
final
disposalTime Duration
Time to allow the disposal invoker to release the reference to the object.
final
hashCode int
The hash code for this object.
no setterinherited
maxRequestsForRetainingPath int?
Limit for number of requests for retaining path per one round of validation for leaks.
final
notifyDevTools bool
If true, DevTools will be notified about leaks.
final
numberOfGcCycles int
Number of full GC cycles, enough for a non reachable object to be GCed.
final
onLeaks LeakSummaryCallback?
Listener for leaks.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stdoutLeaks bool
If true, leak information will output to console.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited