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

Commit e702bf07 authored by yawanng's avatar yawanng
Browse files

iorap: Add a DEBUG guide on IORap debugging log.

Bug: 171979838
Test: Make
Change-Id: I060ebbc2ed3c13b2d56d705e5d6b9b0211f7b2af
parent b98e279d
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;