Merge "Use timeout -i to distinguish cases where logcat is making progress."
This commit is contained in:
@@ -8407,9 +8407,9 @@ public class ActivityManagerService extends IActivityManager.Stub
|
|||||||
InputStreamReader input = null;
|
InputStreamReader input = null;
|
||||||
try {
|
try {
|
||||||
java.lang.Process logcat = new ProcessBuilder(
|
java.lang.Process logcat = new ProcessBuilder(
|
||||||
// Time out after 10s, but kill logcat with SEGV
|
// Time out after 10s of inactivity, but kill logcat with SEGV
|
||||||
// so we can investigate why it didn't finish.
|
// so we can investigate why it didn't finish.
|
||||||
"/system/bin/timeout", "-s", "SEGV", "10s",
|
"/system/bin/timeout", "-i", "-s", "SEGV", "10s",
|
||||||
// Merge several logcat streams, and take the last N lines.
|
// Merge several logcat streams, and take the last N lines.
|
||||||
"/system/bin/logcat", "-v", "threadtime", "-b", "events", "-b", "system",
|
"/system/bin/logcat", "-v", "threadtime", "-b", "events", "-b", "system",
|
||||||
"-b", "main", "-b", "crash", "-t", String.valueOf(lines))
|
"-b", "main", "-b", "crash", "-t", String.valueOf(lines))
|
||||||
|
|||||||
Reference in New Issue
Block a user