leak_tracker library

Classes

ContextKeys
IgnoredLeaks
The total set of ignored leaks.
IgnoredLeaksSet
Set of classes to ignore during leak tracking.
LeakDiagnosticConfig
Configuration for diagnostics.
LeakProvider
LeakReport
Leak information, passed from application to DevTools and than extended by DevTools after deeper analysis.
Leaks
Detailed information about found leaks.
LeakSummary
Statistical information about found leaks.
LeakTracking
Provides leak tracking functionality.
LeakTrackingConfig
Leak tracking configuration.
MemoryBaseline
MemoryBaselining
Settings for measuring memory footprint.
PhaseSettings
Leak tracking settings for a specific phase of the application execution.
ValueSampler

Constants

defaultAllowedRssDeviation → const double
defaultNumberOfGcCycles → const int
The default value for number of full GC cycles, enough for a non reachable object to be GCed.

Functions

forceGC({Duration? timeout, int fullGcCycles = 1}) Future<void>
Forces garbage collection by aggressive memory allocation.
formattedRetainingPath(WeakReference<Object> ref) Future<String?>
Returns nicely formatted retaining path for the WeakReference.target.

Typedefs

LeaksCallback = void Function(Leaks leaks)
Handler to collect leak information.
LeakSummaryCallback = void Function(LeakSummary)
Handler to collect leak summary.