commit | 0898ab9d8e511429de42de99a1c822017c467077 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Mon Jan 15 21:59:12 2018 +0000 |
committer | Primiano Tucci <primiano@google.com> | Mon Jan 15 21:59:12 2018 +0000 |
tree | e47efd52d03c5f45981b7eb9cc5105a5cbc05ce9 | |
parent | 8f266ad79798388a74cbc401d23eba677539d291 [diff] |
Reduce binary size by 44 KiB (STL streams -> std::string) Thanks to the analysis of b/71844955#comment14, I managed to spot a case of C++ streams codegen euforia. Reimplementing the same function on top of std::string saves 44 KiB (measured before and after on a standalone releade build on arm64) TBR: hjd Test: run tools/update_protos.py --whitelist tools/ftrace_proto_gen/event_whitelist out/mac_debug/ftrace_proto_gen ./src/ftrace_reader/test/data/android_seed_N2F62_3.10.49/events protos/ftrace/ and check that there are no diffs in proto/ Bug: 71844955 Change-Id: Ifc93b435c639d0ec815e5958b1e1ff504177f1bb
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
$ 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