Add new metric for queuing delay scroll jank cause.

This metric finds slices that could have blocked the next step in the critical
flow of a scroll from executing. It does this by looking at the period of time
between steps collecting all slices and figuring out the overlap. This allows us
to count how often a certain task appears between janky and non-janky scrolls.

In the process of porting our current version of this metric and adding the diff
test I found 2 bugs related to including the current slice stack which means we
were inflating numbers for events that happen as a part of the critical flow.

Bug: 159606819
Change-Id: I0cf7d01b542e36dca49987b80729bd407877f4a7
9 files changed
tree: ae8c6d1b1f140afe14cfafe042e7b82c5f84cda0
  1. bazel/
  2. build_overrides/
  3. buildtools/
  4. debian/
  5. docs/
  6. examples/
  7. gn/
  8. include/
  9. infra/
  10. protos/
  11. src/
  12. test/
  13. tools/
  14. ui/
  15. .clang-format
  16. .clang-tidy
  17. .gitignore
  18. .gn
  19. .style.yapf
  20. Android.bp
  21. Android.bp.extras
  22. BUILD
  23. BUILD.extras
  24. BUILD.gn
  25. CHANGELOG
  26. codereview.settings
  27. heapprofd.rc
  28. LICENSE
  29. METADATA
  30. MODULE_LICENSE_APACHE2
  31. OWNERS
  32. perfetto.rc
  33. PRESUBMIT.py
  34. README.chromium
  35. README.md
  36. TEST_MAPPING
  37. traced_perf.rc
  38. WORKSPACE
README.md

Perfetto - System profiling, app tracing and trace analysis

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.