Skip to content

Commit

Permalink
Add decoded data into python tracing builds (#28842)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 authored and pull[bot] committed Dec 6, 2023
1 parent 81312ed commit 2658252
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ source "$CHIP_ROOT/scripts/activate.sh"
[[ -n "$chip_case_retry_delta" ]] && chip_case_retry_arg="chip_case_retry_delta=$chip_case_retry_delta" || chip_case_retry_arg=""
[[ -n "$pregen_dir" ]] && pregen_dir_arg="chip_code_pre_generated_directory=\"$pregen_dir\"" || pregen_dir_arg=""

gn --root="$CHIP_ROOT" gen "$OUTPUT_ROOT" --args="matter_enable_tracing_support=true chip_detail_logging=$chip_detail_logging enable_pylib=$enable_pybindings enable_rtti=$enable_pybindings chip_project_config_include_dirs=[\"//config/python\"] $chip_mdns_arg $chip_case_retry_arg $pregen_dir_arg"
# Make all possible human redable tracing available.
tracing_options="matter_log_json_payload_hex=true matter_log_json_payload_decode_full=true matter_enable_tracing_support=true"

gn --root="$CHIP_ROOT" gen "$OUTPUT_ROOT" --args="$tracing_options chip_detail_logging=$chip_detail_logging enable_pylib=$enable_pybindings enable_rtti=$enable_pybindings chip_project_config_include_dirs=[\"//config/python\"] $chip_mdns_arg $chip_case_retry_arg $pregen_dir_arg"

function ninja_target() {
# Print the ninja target required to build a gn label.
Expand Down
8 changes: 8 additions & 0 deletions third_party/perfetto/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import("//build_overrides/build.gni")
import("//build_overrides/chip.gni")

import("${build_root}/config/compiler/compiler.gni")

config("sdk_config") {
include_dirs = [ "repo/sdk" ]

Expand All @@ -23,6 +25,12 @@ config("sdk_config") {

config("sdk_private_config") {
cflags = [ "-Wno-shadow" ]

if (!is_clang) {
# Based on comments from perfetto/repo/gn/standalone/BUILD.gn:
# Use return std::move(...) for compatibility with old GCC compilers.
cflags += [ "-Wno-redundant-move" ]
}
}

source_set("sdk") {
Expand Down

0 comments on commit 2658252

Please sign in to comment.