perfetto: Enable batching of commits and producer-side chunk patching in
Chrome's perfetto producers. This is done to reduce the overhead of tracing. The batching period of 1s was determined using https://chromium-review.googlesource.com/c/chromium/src/+/1835498 in Chrome on gLinux, but with 4KB Chunk size (which corresponds to the chunk size on Android, where batching would have the most pronounced effect). The effects of various delays on overhead can be seen at https://drive.google.com/file/d/1Og9cSTaNmsSy1P6k0nfoyHK8n094HMrW/view?usp=sharing. A spreadsheet with the full perfstat results, on which this graph is based, can be found at https://docs.google.com/spreadsheets/d/15wxYJaR2hvUVY2MtqI29gPYwdkGxDZVqrUkSOZWspPs/edit?usp=sharing. Since all affected producers already set will_notify_on_stop=true, we can just flush commits while stopping a datasource to avoid losing any batched data. Related changes in perfetto: https://android-review.googlesource.com/c/platform/external/perfetto/+/1260461 https://android-review.googlesource.com/c/platform/external/perfetto/+/1309414/13 https://android-review.googlesource.com/c/platform/external/perfetto/+/1450696/14 Bug: 1029298 Change-Id: I880cb2e49c169bcf6e216eb12ce52b8bd40ba4ad Change-Id: I880cb2e49c169bcf6e216eb12ce52b8bd40ba4ad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2149648 Commit-Queue: Lyubomir Ivanov <lri@google.com> Reviewed-by:Sami Kyöstilä <skyostil@chromium.org> Reviewed-by:
Eric Seckler <eseckler@chromium.org> Cr-Commit-Position: refs/heads/master@{#837109}
Showing
Please register or sign in to comment