OSDN Git Service

Work on issue #24403813: ANR traces are too heavyweight.
authorDianne Hackborn <hackbod@google.com>
Wed, 2 Mar 2016 23:49:58 +0000 (15:49 -0800)
committerDianne Hackborn <hackbod@google.com>
Thu, 3 Mar 2016 00:07:41 +0000 (16:07 -0800)
commit9369efdf6a43d8fa0f82dcae651c76b85a5ea0ad
treeec013088f2470c56fb6a97a3cbdce6034f9cd956
parent8316fac9c0772b1908d45b2286298b5b791d3ca7
Work on issue #24403813: ANR traces are too heavyweight.

Most of the changes here are optional debugging output.

The actual functional changes:

(1) One of the ANR paths was not being dispatched on the activity
manager's handler, so it could execute concurrently with other
ANR collection, conflicting with the ANR file.
(2) Bumped up the timeout for trace collection from 200ms to
1000ms.  This should fix problems where some process were not
being included, since once one of the collections times out we
can no longer keep synchronized with anything else after and
could end up with data getting corrupt or blown away.

Change-Id: If6828d2dea1a25cd6d2334a652b1b31654d9062f
services/core/java/com/android/server/am/ActivityManagerDebugConfig.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/AppErrors.java