commit | ff7295911953243edb193673e779fe16cdb99936 | [log] [tgz] |
---|---|---|
author | Oystein Eftevaag <oysteine@google.com> | Mon Feb 12 14:24:06 2018 -0800 |
committer | Oystein Eftevaag <oysteine@google.com> | Mon Feb 12 14:24:06 2018 -0800 |
tree | 2f36b5eb0262190ee783a1242ea0fde6c6d5c628 | |
parent | 5fa6b2b83620007ea7b0073dda35911c171c0d7f [diff] |
Added a PERFETTO_ prefix to the BUILDFLAG macros. build_config.h isn't really feasible to keep out of public headers due to usage in protozero inlined functions, so we need this to avoid conflicts. Change-Id: Ic928b121807be2ae08fa046cbc13298a4e6f3914
This project is meant to be built both as part of the Android tree and from a standalone checkout
For internal docs see this page
Android is the platform targeted in the first milestones. Right now Linux desktop and OSX are maintained best-effort.
This project uses Android AOSP Gerrit for code reviews and uses the Google C++ style. Currently targets -std=c++11
.
You can use both git cl upload
from Chromium depot tools or Android repo to upload patches.
git cl
is quite convenient as it supports code auto-formatting via git cl format
.
See https://source.android.com/source/contributing for more details about external contributions and CLA signing.
See docs/build_instructions.md
Continuous build and test coverage is available at perfetto-ci.appspot.com. Trybots: CLs uploaded to gerrit are automatically submitted to TravisCI within one minute and made available on the CI page above. The relevant code lives in the infra/ directory.
$ tools/ninja -C out/default (tracing_unittests | tracing_benchmarks) $ out/default/tracing_unittests --gtest_help
Either connect a device in ADB mode or use the bundled emulator.
To start the emulator:$ tools/run_android_emulator (arm | arm64) &
To run the tests (either on the emulator or physical device):$ tools/run_android_test out/default tracing_unittests