summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/dumpstate.cpp
diff options
context:
space:
mode:
author Bryan Yu <yuholong@google.com> 2024-02-02 13:37:06 +0000
committer Bryan Yu <yuholong@google.com> 2024-02-02 13:38:58 +0000
commitefb85d92281b787071573675e323915671534a9b (patch)
treefcd118cb74350a0c6e044b895d8cbdbad51133a6 /cmds/dumpstate/dumpstate.cpp
parent6af06062db710642ff3a7dbf387ad5f30640253a (diff)
Add ANR traces to DumpstateLimitedOnly
Privacy approved: b/303373337 Bug: 298145042 Test: adb shell cmd activity bug-report Change-Id: I6119b6f35c05d0ed85ba80a3c19a690e322c9e61
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
-rw-r--r--cmds/dumpstate/dumpstate.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 481c28ef6b..5ee6b155f2 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1563,6 +1563,13 @@ static void DumpstateLimitedOnly() {
RunDumpsys("DROPBOX SYSTEM SERVER CRASHES", {"dropbox", "-p", "system_server_crash"});
RunDumpsys("DROPBOX SYSTEM APP CRASHES", {"dropbox", "-p", "system_app_crash"});
+
+ printf("========================================================\n");
+ printf("== ANR Traces\n");
+ printf("========================================================\n");
+
+ AddAnrTraceFiles();
+
printf("========================================================\n");
printf("== Final progress (pid %d): %d/%d (estimated %d)\n", ds.pid_, ds.progress_->Get(),
ds.progress_->GetMax(), ds.progress_->GetInitialMax());