LeakDetector class
泄漏检测主要工具类
Constructors
- LeakDetector()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onEventStream
→ Stream<
DetectorEvent> -
no setter
-
onLeakedStream
→ Stream<
LeakedInfo> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addWatchObject(
Object obj, String group) → dynamic -
group
认为可以在一块释放的对象组,一般在一个State中想监听的对象 -
ensureReleaseAsync(
String? group, {int delay = 0}) → dynamic - Start to detect whether there is a memory leak
-
init(
{int maxRetainingPath = 300}) → void -
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
- maxRetainingPath ↔ int?
-
VmService.getRetainingPath
limitgetter/setter pair