commit | 0637578f8ff76778f5858df2361e4edd7d9c8026 | [log] [tgz] |
---|---|---|
author | Eric Seckler <eseckler@google.com> | Wed Jul 10 14:16:58 2019 +0100 |
committer | Eric Seckler <eseckler@google.com> | Wed Jul 10 14:16:58 2019 +0100 |
tree | f22f8831465cc1e157da3bcbde2bb25e5c025458 | |
parent | ee07ce7cbdc4a9a242f82ae8d9f62b1a97070e09 [diff] |
startup writers: Commit locally buffered data in batches If a lot of data is buffered in the StartupTraceWriters, we may end up stalling during binding because we fill up the SMB with the buffered data in a quick burst. This patch makes it possible to commit the locally buffered data into the SMB in smaller batches, waiting for the service to process each batch before committing the next. The underlying TraceWriter may commit future chunks at any time after the first batch of buffered data chunks is committed (i.e. while other batches are pending asynchronous commit). This is not an issue because the service can handle chunks being committed out-of-order. Bug: 136235443 Change-Id: Ic9e2d2e085ca2b14758867a7060d179171de9d2b
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.