commit | 35f3e18aafc69b3e1de99217a7aa13a753647aa3 | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Fri Apr 14 09:46:57 2017 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Wed Apr 19 09:16:30 2017 -0700 |
tree | b077f5d8497b6fc4b858445a4cc74479c5ee8601 | |
parent | fd68111ca9b464d60647db91a047725834e95901 [diff] |
logd: replace stats.add+stats.subtract with stats.addTotal Replace stats.add(elem) + stats.subtract(elem) with a new more efficient method stats.addTotal(elem). Test: gTest liblog-unit-test, logd-unit-tests and logcat-unit-tests Bug: 37254265 Change-Id: I2b3c2ac44209772b38f383ae46fe6c4422b542cf