OSDN Git Service

logd: clearAll by UID speedup
authorMark Salyzyn <salyzyn@google.com>
Wed, 16 Sep 2015 22:34:00 +0000 (15:34 -0700)
committerRom Lemarchand <romlem@google.com>
Mon, 16 Nov 2015 16:53:04 +0000 (08:53 -0800)
commit9bc35ef4c975891e2fb77745c877ce8847727b73
tree425772dee2b78c6f20a5f8350317e406388e183b
parent5679d8d57244ebe1daa8d992113a0721af9547ca
logd: clearAll by UID speedup

(cherry pick from commit 2b25c66070f73413013caa48e1c171cb895869b5)

- If doing a clear, skip accounting
- Ensure for busy checking, behind a region lock for instance, only
  break out if there was something to do. Basically move the filter
  actions first, and defer checking the region lock to the ends of
  the loops.

Bug: 23711431
Change-Id: Icc984f406880633516fb17dda84188a30d092e01
logd/LogBuffer.cpp