Skip to content

Commit

Permalink
Merge "sdk: allow cmake builds to be binary-size comaparable" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
LalitMaganti authored and Gerrit Code Review committed Jul 31, 2023
2 parents 5f60500 + e520cfd commit 30c1e5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ To build:
```bash
export NDK=/path/to/ndk
cmake -DCMAKE_TOOLCHAIN_FILE=$NDK/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=arm64-v8a \
-DANDROID_PLATFORM=android-21 \
-DANDROID_LD=lld \
-DCMAKE_BUILD_TYPE=Release \
-B build_android
cmake --build build_android
```
Expand Down
1 change: 1 addition & 0 deletions examples/sdk/example_system_wide.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ void InitializePerfetto() {
// are going to use the system-wide tracing service, so that we can see our
// app's events in context with system profiling information.
args.backends = perfetto::kSystemBackend;
args.enable_system_consumer = false;

perfetto::Tracing::Initialize(args);
perfetto::TrackEvent::Register();
Expand Down

0 comments on commit 30c1e5a

Please sign in to comment.