Merge "Remove debug flag for some important logs." into nyc-dev

am: b7ba766

* commit 'b7ba766352ca78784831e7332dd59aa2f0e2a314':
  Remove debug flag for some important logs.

Change-Id: I72b6e551ddc7f87a585d33cb7a6e03b74cb1b5f7
This commit is contained in:
Sudheer Shanka
2016-04-22 21:02:01 +00:00
committed by android-build-merger

View File

@@ -3688,29 +3688,27 @@ public final class ActivityManagerService extends ActivityManagerNative
Watchdog.getInstance().processStarted(app.processName, startResult.pid);
}
if (DEBUG_PROCESSES) {
checkTime(startTime, "startProcess: building log message");
StringBuilder buf = mStringBuilder;
buf.setLength(0);
buf.append("Start proc ");
buf.append(startResult.pid);
buf.append(':');
buf.append(app.processName);
buf.append('/');
UserHandle.formatUid(buf, uid);
if (!isActivityProcess) {
buf.append(" [");
buf.append(entryPoint);
buf.append("]");
}
buf.append(" for ");
buf.append(hostingType);
if (hostingNameStr != null) {
buf.append(" ");
buf.append(hostingNameStr);
}
Slog.i(TAG, buf.toString());
checkTime(startTime, "startProcess: building log message");
StringBuilder buf = mStringBuilder;
buf.setLength(0);
buf.append("Start proc ");
buf.append(startResult.pid);
buf.append(':');
buf.append(app.processName);
buf.append('/');
UserHandle.formatUid(buf, uid);
if (!isActivityProcess) {
buf.append(" [");
buf.append(entryPoint);
buf.append("]");
}
buf.append(" for ");
buf.append(hostingType);
if (hostingNameStr != null) {
buf.append(" ");
buf.append(hostingNameStr);
}
Slog.i(TAG, buf.toString());
app.setPid(startResult.pid);
app.usingWrapper = startResult.usingWrapper;
app.removed = false;
@@ -20061,7 +20059,7 @@ public final class ActivityManagerService extends ActivityManagerNative
} else {
numEmpty++;
if (numEmpty > emptyProcessLimit) {
app.kill("empty #" + numEmpty, DEBUG_PROCESSES);
app.kill("empty #" + numEmpty, true);
}
}
break;