diff options
| author | 2020-09-18 21:15:05 -0500 | |
|---|---|---|
| committer | 2020-10-07 16:30:45 -0500 | |
| commit | 14411c953000df109de22c30b347ea367e7acbec (patch) | |
| tree | 129d4366e4a37a9fcda6d71876d1fabf457e0b97 /libs/gui/QueueBufferInputOutput.cpp | |
| parent | 2e6387b406f215224ee06ae9a5d13da6b9302aa7 (diff) | |
Limit the number of printed entries in a queue
When debugging some input bugs, it takes a while to scroll through all
of the entries in waitQueues and outboundQueues.
For example, the count can be > 100 for some ANR scenarios.
Limit the number to 50 total entries printed: 25 oldest and 25 newest.
This quantity should be sufficient to figure out what's going on with
the queues.
Note: I could not reproduce the ANR anymore, so the latest patchset was
not tested using the first test procedure.
Bug: 160561987
Test: reproduce an ANR using monkey, then look at dumpsys input
adb shell monkey 10000
adb shell dumpsys input
Test: the above procedure, but without 'reproduce ANR'
Change-Id: I01d661e0a85cc5bfbf61fa4b23689e8b27daa84b
Diffstat (limited to 'libs/gui/QueueBufferInputOutput.cpp')
0 files changed, 0 insertions, 0 deletions