OSDN Git Service

dumpsys: fix formatting of service dump times
authormukesh agrawal <quiche@google.com>
Wed, 27 Jul 2016 19:01:49 +0000 (12:01 -0700)
committerHector Tellez <htellez@google.com>
Thu, 28 Jul 2016 19:43:12 +0000 (19:43 +0000)
commitbca287d28450d4cc23382174c86de3c84e6a0b8f
tree371f14e79a008ef43af66d4a546ae32c97a6d493
parent98650f0e33f39627d66feee73f03346e1055157a
dumpsys: fix formatting of service dump times

The current formatting of service dump times is
confusing some bugreport parsing tools. This is
because the current service dump time message
is hard to distinguish from the bugreport section
marker.

Adjust the formatting, to make the service
dump time message distinct from the bugreport
section marker.

BUG=30401031
TEST=manual

Manual test
$ adb bugreport /tmp/bugreport.zip
$ cd /tmp
$ mkdir br
$ mv bugreport.zip br
$ cd br
$ grep 'was the duration' bugreport*.txt
------ 4.283s was the duration of 'DUMPSYS MEMINFO' ------
------ 0.053s was the duration of 'DUMPSYS CPUINFO' ------
[...many lines omitted...]
--------- 0.003s was the duration of dumpsys AtCmdFwd
--------- 0.002s was the duration of dumpsys DockObserver
[...many more lines omitted...]

Change-Id: I9d3dd75210b3984240a4b7ab49a1cc6124a269d8
(cherry picked from commit 50b7e039500b3decc78d5ffff9919d1481df4964)
cmds/dumpsys/dumpsys.cpp