platform_system_core/libstats/socket
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
..
include Do not truncate AStatsEvent buffers 2020-06-10 20:43:53 -07:00
tests Do not truncate AStatsEvent buffers 2020-06-10 20:43:53 -07:00
Android.bp Do not truncate AStatsEvent buffers 2020-06-10 20:43:53 -07:00
TEST_MAPPING Add libstatssocket_test to TEST_MAPPING 2020-02-04 16:08:21 -08:00
libstatssocket.map.txt Expose AStatsSocket_close() from the statsd apex 2020-02-13 16:16:48 -08:00
libstatssocket_test.xml Add test config to libstatspull_test and libstatssocket_test 2020-05-21 14:51:59 -07:00
stats_buffer_writer.c Remove statsd enable check when logging 2020-05-19 21:52:14 +00:00
stats_event.c Do not truncate AStatsEvent buffers 2020-06-10 20:43:53 -07:00
stats_socket.c Expose AStatsSocket_close() from the statsd apex 2020-02-13 16:16:48 -08:00
statsd_writer.c Add test for AStatsSocket_close() 2020-04-28 15:22:28 -07:00
statsd_writer.h Add test for AStatsSocket_close() 2020-04-28 15:22:28 -07:00