service: Add buffer.clear_before_clone Add a flag that causes the buffer to be cleared prior to the Flush() that precedes a clone. This is intended to be used together with transfer_on_clone, so that if a data source takes too long to write data and goes beyond the flush timeout, we don't mix old data and new data on the next clone. See go/clone-for-winscope Test: perfetto_unittests --gtest_filter=TracingServiceImplTest.ClearBeforeClone Bug: 293429094 Change-Id: I38fb847436c9ee3fbd6e7e6e0ee3ef00ba7de821
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.