Add trace metric to root cause jank in SysUI CUJs

Detects a few common jank root causes with the following caveats:
* We do not use VSYNC-app counter to determine the start
  of the frame. Instead we assume the frame starts with
  Choreographer#doFrame
* Thresholds for jank causes have to be adjusted
* SQL query runtime seems quite high so it has to be optimized


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