[ui] Add a lock contention graph contextual option This combines the flame graph generation code in trace processor with the monitor contention stdlib to generate a downloadable pprof of the lock contention graph in a process when clicking a slice in that process. Test: Manual Change-Id: I182a0a0c71d7fcc5e10a52a7bffdc16173941c1f
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.