summaryrefslogtreecommitdiff
path: root/libutils/ProcessCallStack_fuzz.cpp
diff options
context:
space:
mode:
authorRuchir Rastogi <ruchirr@google.com>2019-12-12 17:16:59 -0800
committerRuchir Rastogi <ruchirr@google.com>2019-12-18 17:44:26 -0800
commit79dd3eaa878d35c7d586e4d2929356b3b0c1a79c (patch)
treeb6e9dc4e4e995aaadf9819cff57911f0856108d1 /libutils/ProcessCallStack_fuzz.cpp
parent926fa88c3564eb4e641cd674cbdf379a4fff6da6 (diff)
Improve stats_event memory usage
We now truncate the buffer to the appropriate length when clients call stats_event_build(). Benchmarking tests indicate that truncating the buffer to the appropriate length increases the cost clients pay to write to the socket by 2%. This is negligible enough that I decided to truncate the buffer for both pushed and pulled atoms in order to simplify the API. Test: m libstatssocket Test: bit libstatssocket_benchmark:* Bug: 144126231 Change-Id: I35dec748ff87c0821d0d06779a406997e6e64966 Merged-In: Ife976bb383ecff8de5064730692a95e2a3a82c9d
Diffstat (limited to 'libutils/ProcessCallStack_fuzz.cpp')
0 files changed, 0 insertions, 0 deletions