OSDN Git Service

dumpsys: report per-service dump times
authormukesh agrawal <quiche@google.com>
Thu, 9 Jun 2016 01:16:36 +0000 (18:16 -0700)
committerMukesh Agrawal <quiche@google.com>
Tue, 28 Jun 2016 22:20:00 +0000 (22:20 +0000)
commit2f1eb1c16d6061ba4f79ecf67d08827bf74bed27
treeb45310ac6d6af45fb44f44cbc4dbf10f58cf4dc9
parent9c1f9bb7205e59d4bdc6f9e9601bc4b3ef210b3b
dumpsys: report per-service dump times

In WiFi soak testing, we've seen several cases where
dumpsys times out. We've been unable to pin down the
cause of the timeouts, as there's no single service
that is obviously hung.

Add reporting of service dump times, to help figure
out why dumpsys is timing out.

BUG=29090949
TEST=manual

Manual test
- load build on bullhead
$ adb shell dumpsys | grep 'was the duration'
- see non-zero values

Change-Id: Iaba60d840ac55cba171a3ccbc74c2aee8b23dce6
(cherry picked from commit 4e4c548437b7cc7748e97ecc74a525e26a441cdb)
cmds/dumpsys/dumpsys.cpp