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

Commit 396ef95f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "iorap: Add a DEBUG guide on IORap debugging log." into rvc-qpr-dev am: 4b0ec66e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13001653

Change-Id: I65ae37fe10688188e26c0680e01dd1632b8ba3b2
parents 5352582f 4b0ec66e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -727,10 +727,14 @@ public class ArtManagerService extends android.content.pm.dex.IArtManager.Stub {
                                       "compiled_trace.pb");
            try {
                boolean exists =  Files.exists(tracePath);
                if (DEBUG) {
                    Log.d(TAG, tracePath.toString() + (exists? " exists" : " doesn't exist"));
                }
                if (exists) {
                    long bytes = Files.size(tracePath);
                    if (DEBUG) {
                        Log.d(TAG, tracePath.toString() + " size is " + Long.toString(bytes));
                    }
                    return bytes > 0L;
                }
                return exists;