Add version consistently in all build configs and UI

Previously we used to get a version code only in unbundled
builds but not in android or bazel builds nor in the UI.
This makes auditing / bug tracking hard.
This CL improves the header generator and applies it
everywhere, including the UI.
The version script reports:
1. The latest release (e.g. v9.0) parsing the CHANGELOG
2. The number of commits from that release to HEAD
3. The git SHA1 of HEAD.

Change-Id: I21e63b28712255caa5945cb99c4b9a3f9a983723
32 files changed
tree: f974190ca035ba417e2ba6b2b104b8e363fcd5cd
  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.