platform_system_core/libstats
Ruchir Rastogi f2a5ed081a Do not truncate AStatsEvent buffers
Pushed atoms do not need to be truncated because only the bytes added to
the buffer are written to the socket. Pulled atoms do not need to be
truncated because within stats_pull_atom_callback.cpp, we only copy the
valid parts of the buffer to the StatsEventParcel object.

This improves performance by avoiding a needless call to realloc.

+ removed dead benchmarking code

Test: m libstatssocket
Test: atest libstatssocket_test
Test: atest GtsStatsdHostTestCases
Bug: 158717786
Change-Id: I6965f8832758203ca566336ba12d0acaf5f756d5
2020-06-10 20:43:53 -07:00
..
pull Merge "Retry pullfinish with empty payload if call fails" into rvc-dev 2020-06-01 19:14:09 +00:00
push_compat Increase size limit for pulled AStatsEvent 2020-06-09 20:12:42 -07:00
socket Do not truncate AStatsEvent buffers 2020-06-10 20:43:53 -07:00
OWNERS Update OWNERS for libstatssocket 2019-11-01 13:25:31 -07:00