summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorRuchir Rastogi <ruchirr@google.com>2020-06-10 20:43:53 -0700
committerRuchir Rastogi <ruchirr@google.com>2020-06-10 20:43:53 -0700
commitf2a5ed081a392149c189aab0579683dffc89f643 (patch)
tree2a8a64382742450eb99cb6b63d6bb286bc129a80 /trusty/coverage/coverage_test.cpp
parentd9f6d499f70ffcc246c339067b7448c70cdd89be (diff)
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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions