am bbb1fab7: Merge "logd: optimize statistics"

* commit 'bbb1fab76d9416a12c6336a2e32b709dc88adc6d':
  logd: optimize statistics