Memory Leaks

Memory Leaks analysis offers a way to detect memory leaks in Maestro flows defined by you.
Features:
  • View memory leak trace for easy root cause analysis
  • View all leaking objects
  • View memory retained due to leaking object

Enable

Memory Leaks is an opt-in feature and to enable Memory Leak analyses for your flows, add the following to your config.yaml.
.maestro/config.yaml
1
memoryLeaks:
2
enabled: true

Disable

In order to disable memory leaks, remove the memoryLeaks section from your config.yaml or set enabled: false.
.maestro/config.yaml
1
memoryLeaks:
2
enabled: false

Understanding the result

We hope that most of the time, your app will not have any leaks in it.
However, sometimes an occasional leak will find its way into a pull request. Maestro Cloud will block a pull request and surface what objects leaked exactly and the full reference chain that points to the object.
Android
iOS