Skip to content

Commit

Permalink
Enable tracing for all linux app builds (#27871)
Browse files Browse the repository at this point in the history
* Enable tracing support for all linux apps

* Restyled by gn

* Add some output cleaning steps for standalone builds

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Aug 21, 2023
1 parent 8b4986d commit 094009c
Show file tree
Hide file tree
Showing 14 changed files with 64 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ jobs:
linux debug all-clusters-app \
out/linux-x64-all-clusters/chip-all-clusters-app \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
- name: Build example Standalone All Clusters Minimal Server
run: |
./scripts/run_in_build_env.sh \
Expand Down Expand Up @@ -134,6 +136,8 @@ jobs:
linux debug+rpc+ui lighting-app \
out/linux-x64-light-rpc-with-ui/chip-lighting-app \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
- name: Build example Standalone Bridge
run: |
./scripts/run_in_build_env.sh \
Expand Down Expand Up @@ -164,6 +168,8 @@ jobs:
linux debug ota-requestor-app \
out/linux-x64-ota-requestor/chip-ota-requestor-app \
/tmp/bloat_reports/
- name: Clean out build output
run: rm -rf ./out
- name: Build example Standalone Lock App
run: |
./scripts/run_in_build_env.sh \
Expand Down
5 changes: 5 additions & 0 deletions examples/all-clusters-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ chip_system_project_config_include = "<SystemProjectConfig.h>"
chip_project_config_include_dirs =
[ "${chip_root}/examples/all-clusters-app/linux/include" ]
chip_project_config_include_dirs += [ "${chip_root}/config/standalone" ]

matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
5 changes: 5 additions & 0 deletions examples/all-clusters-minimal-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ chip_system_project_config_include = "<SystemProjectConfig.h>"
chip_project_config_include_dirs =
[ "${chip_root}/examples/all-clusters-minimal-app/linux/include" ]
chip_project_config_include_dirs += [ "${chip_root}/config/standalone" ]

matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
5 changes: 5 additions & 0 deletions examples/bridge-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ chip_system_project_config_include = "<SystemProjectConfig.h>"
chip_project_config_include_dirs =
[ "${chip_root}/examples/bridge-app/bridge-common/include" ]
chip_project_config_include_dirs += [ "${chip_root}/config/standalone" ]

matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
4 changes: 4 additions & 0 deletions examples/contact-sensor-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ chip_system_project_config_include = "<SystemProjectConfig.h>"
chip_project_config_include_dirs =
[ "${chip_root}/examples/contact-sensor-app/linux/include" ]
chip_project_config_include_dirs += [ "${chip_root}/config/standalone" ]
matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
4 changes: 4 additions & 0 deletions examples/lock-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ chip_system_project_config_include = "<SystemProjectConfig.h>"
chip_project_config_include_dirs =
[ "${chip_root}/examples/all-clusters-app/linux/include" ]
chip_project_config_include_dirs += [ "${chip_root}/config/standalone" ]
matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
5 changes: 5 additions & 0 deletions examples/log-source-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
import("//build_overrides/chip.gni")

import("${chip_root}/config/standalone/args.gni")

matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
4 changes: 4 additions & 0 deletions examples/ota-provider-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ chip_system_project_config_include = "<SystemProjectConfig.h>"
chip_project_config_include_dirs =
[ "${chip_root}/examples/ota-provider-app/linux/include" ]
chip_project_config_include_dirs += [ "${chip_root}/config/standalone" ]
matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
4 changes: 4 additions & 0 deletions examples/ota-requestor-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ chip_project_config_include_dirs =
chip_project_config_include_dirs += [ "${chip_root}/config/standalone" ]

chip_enable_ota_requestor = true
matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
4 changes: 4 additions & 0 deletions examples/persistent-storage/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
import("//build_overrides/chip.gni")

import("${chip_root}/config/standalone/args.gni")
matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
4 changes: 4 additions & 0 deletions examples/placeholder/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ chip_project_config_include = "<CHIPProjectConfig.h>"
chip_project_config_include_dirs =
[ "${chip_root}/examples/placeholder/linux/include" ]
chip_project_config_include_dirs += [ "${chip_root}/config/standalone" ]
matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
4 changes: 4 additions & 0 deletions examples/thermostat/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
import("//build_overrides/chip.gni")

import("${chip_root}/config/standalone/args.gni")
matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
5 changes: 5 additions & 0 deletions examples/tv-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ chip_build_libshell = true
chip_enable_additional_data_advertising = true

chip_enable_rotating_device_id = true

matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"
5 changes: 5 additions & 0 deletions examples/tv-casting-app/linux/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ chip_enable_additional_data_advertising = true
chip_enable_rotating_device_id = true

chip_max_discovered_ip_addresses = 20

matter_enable_tracing_support = true

# Perfetto requires C++17
cpp_standard = "gnu++17"

0 comments on commit 094009c

Please sign in to comment.