Skip to content

Commit

Permalink
Update DETECT.md
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed Dec 9, 2024
1 parent 73e0fe2 commit 2cdef6c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions doc/leak_tracking/DETECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ the Flutter memory allocation events:
...
LeakTracking.start();
FlutterMemoryAllocations.instance.addListener(
(ObjectEvent event) => LeakTracking.dispatchObjectEvent(event.toMap()),
);
runApp(...);
void main() {
LeakTracking.start();
FlutterMemoryAllocations.instance.addListener(
(ObjectEvent event) => LeakTracking.dispatchObjectEvent(event.toMap()),
);
runApp(...);
}
```

Expand Down

0 comments on commit 2cdef6c

Please sign in to comment.