OSDN Git Service

dumpstate: modify logcat timeout to compensate for storage speed
authorMark Salyzyn <salyzyn@google.com>
Fri, 12 Jun 2015 19:28:24 +0000 (12:28 -0700)
committerMark Salyzyn <salyzyn@google.com>
Fri, 12 Jun 2015 20:19:04 +0000 (13:19 -0700)
commitf989162bb89dff6387f2021101306a1be6d875f7
tree27f9acc267e6182585ed052fd56c59b9857781d2
parent2b5b55e73c79658b9a0ae3fdf347f6dbe65e3c68
dumpstate: modify logcat timeout to compensate for storage speed

Discover the logcat buffer size, divide by the worst storage
speed in kb/s, and multiply by ten to estimate the timeout in
ms for each named buffer. If that value is less than 20 seconds,
then select 20 seconds. Apply this to each logcat request.

Bug: 21555259
Change-Id: Id36aebff83cb06e94350e4a84fa266b66a8444fc
cmds/dumpstate/dumpstate.c