Profile mode
When we execute our Flutter application in default debug mode with the flutter run command, we cannot expect the same performance as the release mode. As we already know, Flutter executes in debug mode using the JIT Dart compiler as the app runs, unlike the release and profile modes, where the app code is pre-compiled using the AOT Dart compiler.
To make performance evaluations, we need to make sure the app is running at its maximum capability; that's why Flutter provides different execution methods: debug, profile, and release.
In profile mode, the application is compiled in a very similar way to release mode, and this is clearly understandable, as we need to know how the app will perform in real scenarios. The only overhead ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access