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

This commit is contained in:
TreeHugger Robot
2020-11-06 06:50:06 +00:00
committed by Android (Google) Code Review

View File

@@ -727,10 +727,14 @@ public class ArtManagerService extends android.content.pm.dex.IArtManager.Stub {
"compiled_trace.pb");
try {
boolean exists = Files.exists(tracePath);
Log.d(TAG, tracePath.toString() + (exists? " exists" : " doesn't exist"));
if (DEBUG) {
Log.d(TAG, tracePath.toString() + (exists? " exists" : " doesn't exist"));
}
if (exists) {
long bytes = Files.size(tracePath);
Log.d(TAG, tracePath.toString() + " size is " + Long.toString(bytes));
if (DEBUG) {
Log.d(TAG, tracePath.toString() + " size is " + Long.toString(bytes));
}
return bytes > 0L;
}
return exists;