vendredi 26 juillet 2019

Running flutter/dart tests in AOT/release or profile mode?

If I understand it correctly by default flutter test will run with a JIT on the Dart VM, while the release mode uses an AOT compiler to native code. I (think to) have a crash which only happens in AOT mode (release and profile), and it would be way easier to debug and reproduce it when I could isolate it by running code in AOT/profile mode.

So how can I run tests (or at least code snippets) in AOT mode? (I don't really care if it runs on an actual iOS or Android device, or is executed on the dev machine or simulators.

(I have found an article which seems to describe the compilation process, but is pretty involved. Is there some easier way for tests?)

Aucun commentaire:

Enregistrer un commentaire