diff options
author | 2023-12-19 12:55:14 +0000 | |
---|---|---|
committer | 2023-12-20 12:24:40 +0000 | |
commit | 1ce6b4b817d51e848abce5c7f56ee7294ba36fb6 (patch) | |
tree | 7706b71a02073314c5e12fc2549624f4c8fc2db5 /test/Android.run-test.bp.py | |
parent | e1e707624d074e4ff395b61de045e7bf55df9b6e (diff) |
Reuse the buffer that holds data to be flushed to file
We use a buffer to generate the trace data in the right format to be
flushed to the file. In streaming mode, we used to allocate and delete
on each flush. Since we need it often, just have one buffer and release
it when the tracing has finished. In non-streaming mode, we used a
global buffer already. We reuse the same buffer but only allocate a
fixed size buffer instead of the user specified size. In streaming mode
the buffer size provided by the user isn't used.
Test: test.py -t 2246
Bug: 259258187
Change-Id: I0710a24ba3ba3fe2534bde0369975cc46ab9c7f4
Diffstat (limited to 'test/Android.run-test.bp.py')
0 files changed, 0 insertions, 0 deletions