LeakTracking class abstract

Provides leak tracking functionality.

Constructors

LeakTracking()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

isStarted → bool
Returns true if leak tracking is configured.
no setter
phase ↔ PhaseSettings
Settings for leak tracking phase.
getter/setter pair
Customized link to documentation on how to troubleshoot leaks.
getter/setter pair
warnForUnsupportedPlatforms ↔ bool
If true, a warning will be printed when leak tracking is requested for a non-supported platform.
getter/setter pair

Static Methods

checkLeaks() → Future<LeakSummary>
Checks for leaks and outputs LeakSummary as configured.
checkNotGCed() → Future<void>
Checks for new not-GCed leaks.
collectLeaks() → Future<Leaks>
Returns details of the leaks collected since last invocation.
declareNotDisposedObjectsAsLeaks() → void
Declares all not disposed objects as leaks.
dispatchObjectCreated({required String library, required String className, required Object object, Map<String, dynamic>? context}) → void
Dispatches object creation to the leak_tracker.
dispatchObjectDisposed({required Object object, Map<String, dynamic>? context}) → void
Dispatches object disposal to the leak_tracker.
dispatchObjectEvent(Map<Object, Map<String, Object>> event) → void
Dispatches an object event to the leak_tracker.
dispatchObjectTrace({required Object object, Map<String, dynamic>? context}) → void
Dispatches additional context information to the leak_tracker.
start({LeakTrackingConfig config = const LeakTrackingConfig(), bool resetIfAlreadyStarted = false}) → void
Configures leak tracking for the application.
stop() → void
Stops leak tracking for the application.
tracked() → Iterable
Performs an operation for each object, not detected as GCed.