Order the steps
Order what happens to a hot method in an app installed without a Baseline Profile.
- Later launches run the AOT-compiled code
- The method gets hot: the JIT compiles it and ART records it in the app's local profile
- While the device is idle and charging, dex2oat compiles profiled methods ahead of time
- The first runs are interpreted
Choose an answer, then open Show answer below to check it.
Show answer
Answer: D B C A
- The first runs are interpreted Nothing has been compiled yet.
- The method gets hot: the JIT compiles it and ART records it in the app's local profile JIT code lasts only for this run; the profile remembers which code matters.
- While the device is idle and charging, dex2oat compiles profiled methods ahead of time Background, profile-guided AOT.
- Later launches run the AOT-compiled code No interpretation or JIT warm-up for that method.