Am implemented Memory leack testing in android studio ide.
Step – 1 : Connect your device with android studio and run your application on your device.
Step – 2 : Go to View -> Tool Windows -> Flutter Performance
Step – 3 : Bottom of the window “Open Dev Tools” option will be there, click on it. It will be navigate into new window of your browser. See below image for more details :
Step – 4 : To follow below steps as per screen shot , you can able to see object size and details.Which are caused memory leakages. First Select “Memory” from available menus than you can able to see below ui.
1. Click on settings icon
2. Select "Dart" and "Flutter" from checkbox.
3. Click on "Apply" button.
Step – 5 : This is final step, now you can able to see memory leaking info.
Step – 6 : You can able to call Garbage Collector manually by using “GC” . You can anytime Reset and get latest snapshot using “Reset” and “Snapshot” buttons.
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.