Dynamically decrease sampling rate when buffer fills. This allows us to get a more course-grained profile in case the target's allocation rate is very high. Test: atest perfetto_integrationtests Bug: 177319854 Change-Id: Ic76234c65a9b551e47009682c061cdacc949e224
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.