Merge "iorap: Add a DEBUG guide on IORap debugging log." into rvc-qpr-dev am: 4b0ec66e83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13001653 Change-Id: I65ae37fe10688188e26c0680e01dd1632b8ba3b2
This commit is contained in:
@@ -727,10 +727,14 @@ public class ArtManagerService extends android.content.pm.dex.IArtManager.Stub {
|
|||||||
"compiled_trace.pb");
|
"compiled_trace.pb");
|
||||||
try {
|
try {
|
||||||
boolean exists = Files.exists(tracePath);
|
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) {
|
if (exists) {
|
||||||
long bytes = Files.size(tracePath);
|
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 bytes > 0L;
|
||||||
}
|
}
|
||||||
return exists;
|
return exists;
|
||||||
|
|||||||
Reference in New Issue
Block a user