LeakDiagnosticConfig class

Configuration for diagnostics.

Stacktrace and retaining path collection can seriously affect performance and memory footprint. So, it is recommended to have them disabled for leak detection and to enable them only for leak troubleshooting.

Annotations
  • @immutable

Constructors

LeakDiagnosticConfig({bool collectRetainingPathForNotGCed = false, bool collectStackTraceOnStart = false, bool collectStackTraceOnDisposal = false})
const

Properties

collectRetainingPathForNotGCed bool
If true, retaining path will be collected for non-GCed objects.
final
collectStackTraceOnDisposal bool
If true, stack trace will be collected on disposal for all tracked classes.
final
collectStackTraceOnStart bool
If true, stack trace will be collected on start of tracking for all classes.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? collectRetainingPathForNotGCed, bool? collectStackTraceOnStart, bool? collectStackTraceOnDisposal}) LeakDiagnosticConfig
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.
override