Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95fc5084 authored by Calin Juravle's avatar Calin Juravle Committed by android-build-merger
Browse files

Merge "Add the compilation reason to the dexopt dumps" into pi-dev

am: 709bfc2c

Change-Id: I44cb35ba63747e80ad07951972d0c97a3da2df88
parents ab887d70 709bfc2c
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -449,13 +449,15 @@ public class PackageDexOptimizer {
            pw.increaseIndent();

            for (String isa : dexCodeInstructionSets) {
                String status = null;
                try {
                    status = DexFile.getDexFileStatus(path, isa);
                    String[] status = DexFile.getDexFileOptimizationStatus(path, isa);
                    String compilationStatus = status[0];
                    String compilationReason = status[1];
                    pw.println(isa + ": [status=" + compilationStatus
                            +"] reason=[" + compilationReason + "]");
                } catch (IOException ioe) {
                     status = "[Exception]: " + ioe.getMessage();
                    pw.println(isa + ": [Exception]: " + ioe.getMessage());
                }
                pw.println(isa + ": " + status);
            }

            if (useInfo.isUsedByOtherApps(path)) {