commit | 28bc7eed7ae51060e70de240fcb57f3d94c4012d | [log] [tgz] |
---|---|---|
author | Riddle Hsu <[email protected]> | Fri Nov 18 16:11:26 2022 +0000 |
committer | Riddle Hsu <[email protected]> | Tue Nov 22 14:41:37 2022 +0000 |
tree | 5d9ca5c3ce0ceb0494c6a856d4d079f514a40cd1 | |
parent | bdc9177efd6a295f29a9ac1485f5c9c7f82c7781 [diff] |
Reduce overhead of writing logcat from protolog method String.format contains more loop, creates more temporary object with more conditions than TextUtils.formatSimple. And the basic syntax provided by formatSimple is enough for use so far, it would be better to reduce the general cost while enabling logcat output of protolog. Bug: 259683790 Test: atest ProtoLogImplTest ProtoLogIntegrationTest LogParserTest Change-Id: Icbf55c9e75c2343a961a57f83823a90e1f057075