Snap for 11703238 from 7c92aa58167a2f03b34c01c0ef2d6cb6f71e601a to androidx-annotation-release

Change-Id: I358c1349510ca71f71f41f2007a1bf1541c3ad0c
tree: 30c39086f0ac863a5ff6b49badc04c88ddccc0cd
  1. protos/
  2. testdata/
  3. trace_processor_shell/
  4. tracebox/
  5. .gitignore
  6. generate_perfetto_binaries.py
  7. README.md
README.md

Perfetto Binaries

The source code for several perfetto binaries lives in the external/perfetto project in the AOSP source tree. These binaries enable unbundled perfetto tracing, and on-device trace processing.

To set up the perfetto repository for the first time:

git clone https://android.googlesource.com/platform/external/perfetto/ perfetto_repo
perfetto_repo/tools/install-build-deps --android

To build stripped binaries from the local repository:

./generate_perfetto_binaries.py

This script automates some of the build instructions documented here.

Some important things handled are:

  • binary stripping (drastically reduces binary size)
  • sets monolithic_binaries = true (important for unbundled usage)
  • handles all architectures supported by macrobenchmark