[stdlib]: Add track_id partition to counter_leading_intervals Adding a partition key makes it more generally useful. Also added tests. Spot checked the existing use cases in android_batt that they already pass in a track_id so should just work. Test: tools/diff_test_trace_processor.py out/android/trace_processor_shell --name-filter '.*interval.*' Change-Id: I6ef48b665caf2006627a3178617834733e0f6df0
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.