Skip to content

fix: android: do not initialize tracing if it is disabled #38956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j0tunn
Copy link
Contributor

@j0tunn j0tunn commented May 14, 2025

For now android build always include perfetto tracing. We shouldn't build it if tracing is disabled via build argument matter_enable_tracing_support .

Tracing increases the target binary size and build time. Thats a "pay-for-use" thing: do not compile tracing code into target binary if tracing is disabled.

Testing

Manual build. Steps:

  • build with matter_enable_tracing_support = false
  • checkout binary for perfetto symbols

@j0tunn j0tunn requested a review from a team as a code owner May 14, 2025 15:33
@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch from f6715f3 to c525049 Compare May 14, 2025 15:34
Copy link

github-actions bot commented May 14, 2025

PR #38956: Size comparison from 162df09 to c525049

Full report (3 builds for cc32xx, stm32)
platform target config section 162df09 c525049 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549050 549050 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 579738 579738 0 0.0
RAM 205376 205376 0 0.0
stm32 light STM32WB5MM-DK FLASH 464540 464540 0 0.0
RAM 141416 141416 0 0.0

@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch from c525049 to 0294d9d Compare May 14, 2025 15:51
Copy link

github-actions bot commented May 14, 2025

PR #38956: Size comparison from 162df09 to 0294d9d

Full report (44 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, nrfconnect, psoc6, qpg, stm32, telink, tizen)
platform target config section 162df09 0294d9d change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1101678 1101678 0 0.0
RAM 178994 178994 0 0.0
bl702 lighting-app bl702+eth FLASH 654940 654940 0 0.0
RAM 134961 134961 0 0.0
bl702+wifi FLASH 832446 832446 0 0.0
RAM 124501 124501 0 0.0
bl706+mfd+rpc+littlefs FLASH 1064978 1064978 0 0.0
RAM 117365 117365 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894160 894160 0 0.0
RAM 105660 105660 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978258 978258 0 0.0
RAM 109836 109836 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820196 820196 0 0.0
RAM 120208 120208 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 830232 830232 0 0.0
RAM 125376 125376 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 778472 778472 0 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762780 762780 0 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549050 549050 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 579738 579738 0 0.0
RAM 205376 205376 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661709 661709 0 0.0
RAM 77236 77236 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681561 681561 0 0.0
RAM 79876 79876 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681561 681561 0 0.0
RAM 79876 79876 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638501 638501 0 0.0
RAM 72304 72304 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 622997 622997 0 0.0
RAM 73532 73532 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 642641 642641 0 0.0
RAM 76084 76084 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 642641 642641 0 0.0
RAM 76084 76084 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 642405 642405 0 0.0
RAM 76532 76532 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 662121 662121 0 0.0
RAM 79084 79084 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 662121 662121 0 0.0
RAM 79084 79084 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 618633 618633 0 0.0
RAM 70628 70628 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 638485 638485 0 0.0
RAM 73260 73260 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 638485 638485 0 0.0
RAM 73260 73260 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 919244 919244 0 0.0
RAM 167326 167326 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 911220 911220 0 0.0
RAM 145570 145570 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 856468 856468 0 0.0
RAM 141089 141089 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1665268 1665268 0 0.0
RAM 212328 212328 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1569764 1569764 0 0.0
RAM 208504 208504 0 0.0
light cy8ckit_062s2_43012 FLASH 1445228 1445228 0 0.0
RAM 197216 197216 0 0.0
lock cy8ckit_062s2_43012 FLASH 1475236 1475236 0 0.0
RAM 224936 224936 0 0.0
qpg lighting-app qpg6105+debug FLASH 666804 666804 0 0.0
RAM 105164 105164 0 0.0
lock-app qpg6105+debug FLASH 625208 625208 0 0.0
RAM 99792 99792 0 0.0
stm32 light STM32WB5MM-DK FLASH 464540 464540 0 0.0
RAM 141416 141416 0 0.0
telink bridge-app tl7218x FLASH 693548 693548 0 0.0
RAM 101828 101828 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 772934 772934 0 0.0
RAM 49980 49980 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 780040 780040 0 0.0
RAM 109160 109160 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 702308 702308 0 0.0
RAM 62544 62544 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 740262 740262 0 0.0
RAM 85724 85724 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 606362 606362 0 0.0
RAM 119376 119376 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815350 815354 4 0.0
RAM 107428 107428 0 0.0
tizen all-clusters-app arm unknown 5216 5216 0 0.0
FLASH 1812316 1812316 0 0.0
RAM 94840 94840 0 0.0
chip-tool-ubsan arm unknown 20600 20600 0 0.0
FLASH 20823118 20823118 0 0.0
RAM 9060032 9060032 0 0.0

@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch 2 times, most recently from 6b3dc3e to 06cfe7c Compare May 14, 2025 16:54
Copy link

github-actions bot commented May 14, 2025

PR #38956: Size comparison from 162df09 to 06cfe7c

Full report (5 builds for cc32xx, stm32, tizen)
platform target config section 162df09 06cfe7c change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549050 549050 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 579738 579738 0 0.0
RAM 205376 205376 0 0.0
stm32 light STM32WB5MM-DK FLASH 464540 464540 0 0.0
RAM 141416 141416 0 0.0
tizen all-clusters-app arm unknown 5216 5216 0 0.0
FLASH 1812316 1812316 0 0.0
RAM 94840 94840 0 0.0
chip-tool-ubsan arm unknown 20600 20600 0 0.0
FLASH 20823118 20823118 0 0.0
RAM 9060032 9060032 0 0.0

@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch from 06cfe7c to 16032b3 Compare May 14, 2025 17:17
Copy link

PR #38956: Size comparison from 0238fed to 16032b3

Full report (3 builds for cc32xx, stm32)
platform target config section 0238fed 16032b3 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549050 549050 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 579738 579738 0 0.0
RAM 205376 205376 0 0.0
stm32 light STM32WB5MM-DK FLASH 464540 464540 0 0.0
RAM 141416 141416 0 0.0

@andy31415
Copy link
Contributor

andy31415 commented May 14, 2025

@j0tunn until now android is always built with tracing enabled. Do you have specific needs to compile it without tracing?

The question that needs to be answered in the PR summary is also why something is needed. Design currently seems to be "this platform always wants tracing".

@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch from 16032b3 to 5ccf921 Compare May 14, 2025 17:37
Copy link
Contributor

@andy31415 andy31415 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested:

  • update summary to give detail about testing (since it is manual, provide full instructions for the issue to be reproducible)
  • describe in the summary on why we want to support android without tracing? Is this a size difference or performance increase or a customer requested thing (do we have a reported issue for this with explanation) or something else
  • fix build/CI

@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch 2 times, most recently from 87c2306 to 33a7337 Compare May 14, 2025 18:01
Copy link

PR #38956: Size comparison from 4cb3032 to 33a7337

Full report (3 builds for cc32xx, stm32)
platform target config section 4cb30329 33a7337 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549050 549050 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 579738 579738 0 0.0
RAM 205376 205376 0 0.0
stm32 light STM32WB5MM-DK FLASH 464540 464540 0 0.0
RAM 141416 141416 0 0.0

@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch from 33a7337 to 2b22353 Compare May 14, 2025 18:20
Copy link

github-actions bot commented May 14, 2025

PR #38956: Size comparison from a8b1926 to 2b22353

Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section a8b1926 2b22353 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102160 1102160 0 0.0
RAM 179010 179010 0 0.0
bl702 lighting-app bl702+eth FLASH 655410 655410 0 0.0
RAM 134977 134977 0 0.0
bl702+wifi FLASH 832916 832916 0 0.0
RAM 124525 124525 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065448 1065448 0 0.0
RAM 117365 117365 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894630 894630 0 0.0
RAM 105660 105660 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978728 978728 0 0.0
RAM 109860 109860 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820724 820724 0 0.0
RAM 120232 120232 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 830768 830768 0 0.0
RAM 125376 125376 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 778472 778472 0 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762780 762780 0 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549050 549050 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 580306 580306 0 0.0
RAM 205392 205392 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661845 661845 0 0.0
RAM 77236 77236 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681697 681697 0 0.0
RAM 79876 79876 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681697 681697 0 0.0
RAM 79876 79876 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638629 638629 0 0.0
RAM 72304 72304 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623141 623141 0 0.0
RAM 73540 73540 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 642769 642769 0 0.0
RAM 76092 76092 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 642769 642769 0 0.0
RAM 76092 76092 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 642541 642541 0 0.0
RAM 76540 76540 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 662257 662257 0 0.0
RAM 79092 79092 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 662257 662257 0 0.0
RAM 79092 79092 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 618777 618777 0 0.0
RAM 70644 70644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 638629 638629 0 0.0
RAM 73276 73276 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 638629 638629 0 0.0
RAM 73276 73276 0 0.0
efr32 lock-app BRD4187C FLASH 945268 945268 0 0.0
RAM 132028 132028 0 0.0
BRD4338a FLASH 771384 771376 -8 -0.0
RAM 173256 173256 0 0.0
window-app BRD4187C FLASH 1037344 1037344 0 0.0
RAM 128164 128164 0 0.0
esp32 all-clusters-app c3devkit DRAM 103336 103336 0 0.0
FLASH 1805970 1805970 0 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 121948 121948 0 0.0
FLASH 1771134 1771134 0 0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2787094 2787094 0 0.0
RAM 115048 115048 0 0.0
all-clusters-app debug unknown 5656 5656 0 0.0
FLASH 6341164 6341164 0 0.0
RAM 533192 533192 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5447034 5447034 0 0.0
RAM 225128 225128 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4763472 4763472 0 0.0
RAM 204768 204768 0 0.0
camera-app debug unknown 8856 8856 0 0.0
FLASH 6885531 6885531 0 0.0
RAM 226296 226296 0 0.0
camera-controller debug unknown 9240 9240 0 0.0
FLASH 14309803 14309803 0 0.0
RAM 658448 658448 0 0.0
chip-tool debug unknown 6256 6256 0 0.0
FLASH 14591481 14591481 0 0.0
RAM 645184 645184 0 0.0
chip-tool-ipv6only arm64 unknown 40328 40328 0 0.0
FLASH 12572672 12572672 0 0.0
RAM 691472 691472 0 0.0
fabric-admin debug unknown 5936 5936 0 0.0
FLASH 12668867 12668867 0 0.0
RAM 644544 644544 0 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4580406 4580406 0 0.0
RAM 190800 190800 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5720693 5720693 0 0.0
RAM 486672 486672 0 0.0
lighting-app debug+rpc+ui unknown 6264 6264 0 0.0
FLASH 5642289 5642289 0 0.0
RAM 207256 207256 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4815806 4815806 0 0.0
RAM 194568 194568 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4439422 4439422 0 0.0
RAM 183888 183888 0 0.0
ota-requestor-app debug unknown 4800 4800 0 0.0
FLASH 4567186 4567186 0 0.0
RAM 187760 187760 0 0.0
shell debug unknown 4272 4272 0 0.0
FLASH 3080444 3080444 0 0.0
RAM 148216 148216 0 0.0
thermostat-no-ble arm64 unknown 9624 9624 0 0.0
FLASH 4226640 4226640 0 0.0
RAM 230968 230968 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6076613 6076613 0 0.0
RAM 611112 611112 0 0.0
tv-casting-app debug unknown 5416 5416 0 0.0
FLASH 12783245 12783245 0 0.0
RAM 765680 765680 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 919716 919716 0 0.0
RAM 167334 167334 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 911584 911584 0 0.0
RAM 145578 145578 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 856944 856944 0 0.0
RAM 141097 141097 0 0.0
nxp contact k32w0+release FLASH 592312 592312 0 0.0
RAM 72856 72856 0 0.0
mcxw71+release FLASH 625144 625144 0 0.0
RAM 63196 63196 0 0.0
light k32w0+release FLASH 618260 618260 0 0.0
RAM 72152 72152 0 0.0
k32w1+release FLASH 709696 709696 0 0.0
RAM 72044 72044 0 0.0
lock mcxw71+release FLASH 774744 774744 0 0.0
RAM 67628 67628 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1665996 1665996 0 0.0
RAM 212336 212336 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1570508 1570508 0 0.0
RAM 208520 208520 0 0.0
light cy8ckit_062s2_43012 FLASH 1445972 1445972 0 0.0
RAM 197232 197232 0 0.0
lock cy8ckit_062s2_43012 FLASH 1475980 1475980 0 0.0
RAM 224952 224952 0 0.0
qpg lighting-app qpg6105+debug FLASH 667292 667292 0 0.0
RAM 105172 105172 0 0.0
lock-app qpg6105+debug FLASH 625672 625672 0 0.0
RAM 99808 99808 0 0.0
stm32 light STM32WB5MM-DK FLASH 465020 465020 0 0.0
RAM 141424 141424 0 0.0
telink bridge-app tl7218x FLASH 693920 693920 0 0.0
RAM 101844 101844 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 773306 773306 0 0.0
RAM 49996 49996 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 780412 780412 0 0.0
RAM 109168 109168 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 702680 702680 0 0.0
RAM 62560 62560 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 740634 740634 0 0.0
RAM 85732 85732 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 606734 606734 0 0.0
RAM 119384 119384 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815722 815726 4 0.0
RAM 107436 107436 0 0.0
tizen all-clusters-app arm unknown 5224 5224 0 0.0
FLASH 1813648 1813648 0 0.0
RAM 94908 94908 0 0.0
chip-tool-ubsan arm unknown 20600 20600 0 0.0
FLASH 20823118 20823118 0 0.0
RAM 9060032 9060032 0 0.0

"${chip_root}/src/tracing/perfetto:event_storage",
"${chip_root}/src/tracing/perfetto:simple_initialization",
]
deps = [ "${chip_root}/src/tracing:tracing_buildconfig" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these deps do not seem used if the source files are not compiled?

Why are we not keeping tracing source_set as is, but add a dependency on it based on matter_enable_tracing_support? And the AndroidChipPlatform-JNI is the one that uses build_config.

So we should have: static_library('android') changed:

  • it requires the buildconfig dependency
  • it requires to make the tracing dependency optional. Also is it needed to be excluded? Would link-time optimization not remove the tracing.h/cpp calls if they are not referenced?

Copy link
Contributor

@andy31415 andy31415 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Request changes: build.gn should be updated:

  • add dependency where you need it (not in a empty source set)
  • conditional seems to be needed on the dependency addition not in wiping out the entire tracing bit

I believe the CI will guide you to do these changes as well (I see build failing without it).

Since CI is red: did you actually test your changes locally? Summary claims you did however I do not understand how that test passed when CI is red.

@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch from 2b22353 to 7d311f0 Compare May 15, 2025 07:11
Copy link

github-actions bot commented May 15, 2025

PR #38956: Size comparison from c745bea to 7d311f0

Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section c745bea 7d311f0 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102160 1102160 0 0.0
RAM 179010 179010 0 0.0
bl702 lighting-app bl702+eth FLASH 655410 655410 0 0.0
RAM 134977 134977 0 0.0
bl702+wifi FLASH 832916 832916 0 0.0
RAM 124525 124525 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065448 1065448 0 0.0
RAM 117365 117365 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894630 894630 0 0.0
RAM 105660 105660 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978728 978728 0 0.0
RAM 109860 109860 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820724 820724 0 0.0
RAM 120232 120232 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 830768 830768 0 0.0
RAM 125376 125376 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 778472 778472 0 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762780 762780 0 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549050 549050 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 580306 580306 0 0.0
RAM 205392 205392 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 661845 661845 0 0.0
RAM 77236 77236 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 681697 681697 0 0.0
RAM 79876 79876 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 681697 681697 0 0.0
RAM 79876 79876 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 638629 638629 0 0.0
RAM 72304 72304 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623141 623141 0 0.0
RAM 73540 73540 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 642769 642769 0 0.0
RAM 76092 76092 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 642769 642769 0 0.0
RAM 76092 76092 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 642541 642541 0 0.0
RAM 76540 76540 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 662257 662257 0 0.0
RAM 79092 79092 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 662257 662257 0 0.0
RAM 79092 79092 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 618777 618777 0 0.0
RAM 70644 70644 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 638629 638629 0 0.0
RAM 73276 73276 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 638629 638629 0 0.0
RAM 73276 73276 0 0.0
efr32 lock-app BRD4187C FLASH 945268 945268 0 0.0
RAM 132028 132028 0 0.0
BRD4338a FLASH 771384 771376 -8 -0.0
RAM 173256 173256 0 0.0
window-app BRD4187C FLASH 1037344 1037344 0 0.0
RAM 128164 128164 0 0.0
esp32 all-clusters-app c3devkit DRAM 103336 103336 0 0.0
FLASH 1805970 1805970 0 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 121948 121948 0 0.0
FLASH 1771134 1771134 0 0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2787158 2787158 0 0.0
RAM 115048 115048 0 0.0
all-clusters-app debug unknown 5656 5656 0 0.0
FLASH 6341228 6341228 0 0.0
RAM 533192 533192 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5447098 5447098 0 0.0
RAM 225128 225128 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4763536 4763536 0 0.0
RAM 204768 204768 0 0.0
camera-app debug unknown 8856 8856 0 0.0
FLASH 6885611 6885611 0 0.0
RAM 226296 226296 0 0.0
camera-controller debug unknown 9240 9240 0 0.0
FLASH 14310059 14310059 0 0.0
RAM 658448 658448 0 0.0
chip-tool debug unknown 6256 6256 0 0.0
FLASH 14591745 14591745 0 0.0
RAM 645184 645184 0 0.0
chip-tool-ipv6only arm64 unknown 40328 40328 0 0.0
FLASH 12572768 12572768 0 0.0
RAM 691472 691472 0 0.0
fabric-admin debug unknown 5936 5936 0 0.0
FLASH 12669131 12669131 0 0.0
RAM 644544 644544 0 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4580470 4580470 0 0.0
RAM 190800 190800 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5720949 5720949 0 0.0
RAM 486672 486672 0 0.0
lighting-app debug+rpc+ui unknown 6264 6264 0 0.0
FLASH 5642321 5642321 0 0.0
RAM 207256 207256 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4815838 4815838 0 0.0
RAM 194568 194568 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4439486 4439486 0 0.0
RAM 183888 183888 0 0.0
ota-requestor-app debug unknown 4800 4800 0 0.0
FLASH 4567218 4567218 0 0.0
RAM 187760 187760 0 0.0
shell debug unknown 4272 4272 0 0.0
FLASH 3080444 3080444 0 0.0
RAM 148216 148216 0 0.0
thermostat-no-ble arm64 unknown 9624 9624 0 0.0
FLASH 4226640 4226640 0 0.0
RAM 230968 230968 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6076869 6076869 0 0.0
RAM 611112 611112 0 0.0
tv-casting-app debug unknown 5416 5416 0 0.0
FLASH 12783501 12783501 0 0.0
RAM 765680 765680 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 919716 919716 0 0.0
RAM 167334 167334 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 911584 911584 0 0.0
RAM 145578 145578 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 856944 856944 0 0.0
RAM 141097 141097 0 0.0
nxp contact k32w0+release FLASH 592312 592312 0 0.0
RAM 72856 72856 0 0.0
mcxw71+release FLASH 625144 625144 0 0.0
RAM 63196 63196 0 0.0
light k32w0+release FLASH 618260 618260 0 0.0
RAM 72152 72152 0 0.0
k32w1+release FLASH 709696 709696 0 0.0
RAM 72044 72044 0 0.0
lock mcxw71+release FLASH 774744 774744 0 0.0
RAM 67628 67628 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1665996 1665996 0 0.0
RAM 212336 212336 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1570508 1570508 0 0.0
RAM 208520 208520 0 0.0
light cy8ckit_062s2_43012 FLASH 1445972 1445972 0 0.0
RAM 197232 197232 0 0.0
lock cy8ckit_062s2_43012 FLASH 1475980 1475980 0 0.0
RAM 224952 224952 0 0.0
qpg lighting-app qpg6105+debug FLASH 667292 667292 0 0.0
RAM 105172 105172 0 0.0
lock-app qpg6105+debug FLASH 625672 625672 0 0.0
RAM 99808 99808 0 0.0
stm32 light STM32WB5MM-DK FLASH 465020 465020 0 0.0
RAM 141424 141424 0 0.0
telink bridge-app tl7218x FLASH 693920 693920 0 0.0
RAM 101844 101844 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 773306 773306 0 0.0
RAM 49996 49996 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 780412 780412 0 0.0
RAM 109168 109168 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 702680 702680 0 0.0
RAM 62560 62560 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 740634 740634 0 0.0
RAM 85732 85732 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 606734 606734 0 0.0
RAM 119384 119384 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 815722 815726 4 0.0
RAM 107436 107436 0 0.0
tizen all-clusters-app arm unknown 5224 5224 0 0.0
FLASH 1813648 1813648 0 0.0
RAM 94908 94908 0 0.0
chip-tool-ubsan arm unknown 20600 20600 0 0.0
FLASH 20823774 20823774 0 0.0
RAM 9060300 9060300 0 0.0

@j0tunn
Copy link
Contributor Author

j0tunn commented May 15, 2025

Since CI is red: did you actually test your changes locally? Summary claims you did however I do not understand how that test passed when CI is red.

I've tested it in on our custom build which is generated from gn files.
For complete check I'm using your CI

@j0tunn j0tunn requested a review from andy31415 May 15, 2025 13:04
@j0tunn j0tunn force-pushed the fix/android.disable.tracing branch from 7d311f0 to d84ae7e Compare May 16, 2025 06:52
Copy link

github-actions bot commented May 16, 2025

PR #38956: Size comparison from 2ed64bc to d84ae7e

Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 2ed64bc d84ae7e change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1103314 1103314 0 0.0
RAM 179082 179082 0 0.0
bl702 lighting-app bl702+eth FLASH 656544 656544 0 0.0
RAM 135041 135041 0 0.0
bl702+wifi FLASH 834054 834054 0 0.0
RAM 124597 124597 0 0.0
bl706+mfd+rpc+littlefs FLASH 1066594 1066594 0 0.0
RAM 117429 117429 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895530 895530 0 0.0
RAM 105732 105732 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 979618 979618 0 0.0
RAM 109932 109932 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 821764 821764 0 0.0
RAM 120296 120296 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 831632 831632 0 0.0
RAM 125448 125448 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 779192 779192 0 0.0
RAM 113844 113844 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 763412 763412 0 0.0
RAM 114060 114060 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549646 549646 0 0.0
RAM 205264 205264 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581062 581062 0 0.0
RAM 205456 205456 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662901 662901 0 0.0
RAM 77308 77308 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682753 682753 0 0.0
RAM 79948 79948 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682753 682753 0 0.0
RAM 79948 79948 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639693 639693 0 0.0
RAM 72376 72376 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 624053 624053 0 0.0
RAM 73604 73604 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643689 643689 0 0.0
RAM 76156 76156 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643689 643689 0 0.0
RAM 76156 76156 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 643405 643405 0 0.0
RAM 76604 76604 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 663121 663121 0 0.0
RAM 79156 79156 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 663121 663121 0 0.0
RAM 79156 79156 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619577 619577 0 0.0
RAM 70708 70708 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639429 639429 0 0.0
RAM 73340 73340 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639429 639429 0 0.0
RAM 73340 73340 0 0.0
efr32 lock-app BRD4187C FLASH 946164 946164 0 0.0
RAM 132096 132096 0 0.0
BRD4338a FLASH 772984 772984 0 0.0
RAM 173320 173320 0 0.0
window-app BRD4187C FLASH 1038808 1038808 0 0.0
RAM 128232 128232 0 0.0
esp32 all-clusters-app c3devkit DRAM 103408 103408 0 0.0
FLASH 1808078 1808078 0 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 122028 122028 0 0.0
FLASH 1774154 1774154 0 0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2793962 2793962 0 0.0
RAM 115288 115288 0 0.0
all-clusters-app debug unknown 5656 5656 0 0.0
FLASH 6360072 6360072 0 0.0
RAM 533848 533848 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5462572 5462572 0 0.0
RAM 225624 225624 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4770768 4770768 0 0.0
RAM 205008 205008 0 0.0
camera-app debug unknown 8856 8856 0 0.0
FLASH 6896315 6896315 0 0.0
RAM 226680 226680 0 0.0
camera-controller debug unknown 9240 9240 0 0.0
FLASH 14391979 14391979 0 0.0
RAM 661552 661552 0 0.0
chip-tool debug unknown 6256 6256 0 0.0
FLASH 14674715 14674715 0 0.0
RAM 648288 648288 0 0.0
chip-tool-ipv6only arm64 unknown 40328 40328 0 0.0
FLASH 12625408 12625408 0 0.0
RAM 694576 694576 0 0.0
fabric-admin debug unknown 5936 5936 0 0.0
FLASH 12751055 12751055 0 0.0
RAM 647648 647648 0 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4587370 4587370 0 0.0
RAM 191088 191088 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5733509 5733509 0 0.0
RAM 487200 487200 0 0.0
lighting-app debug+rpc+ui unknown 6264 6264 0 0.0
FLASH 5651041 5651041 0 0.0
RAM 207576 207576 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4824426 4824426 0 0.0
RAM 194872 194872 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4446268 4446268 0 0.0
RAM 184176 184176 0 0.0
ota-requestor-app debug unknown 4800 4800 0 0.0
FLASH 4575872 4575872 0 0.0
RAM 188080 188080 0 0.0
shell debug unknown 4272 4272 0 0.0
FLASH 3095260 3095260 0 0.0
RAM 148632 148632 0 0.0
thermostat-no-ble arm64 unknown 9624 9624 0 0.0
FLASH 4234176 4234176 0 0.0
RAM 231264 231264 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6092325 6092325 0 0.0
RAM 611672 611672 0 0.0
tv-casting-app debug unknown 5416 5416 0 0.0
FLASH 12873933 12873933 0 0.0
RAM 769072 769072 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921580 921580 0 0.0
RAM 167398 167398 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 913312 913312 0 0.0
RAM 145642 145642 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 858688 858688 0 0.0
RAM 141161 141161 0 0.0
nxp contact k32w0+release FLASH 592960 592960 0 0.0
RAM 72928 72928 0 0.0
mcxw71+release FLASH 625832 625832 0 0.0
RAM 63268 63268 0 0.0
light k32w0+release FLASH 619100 619100 0 0.0
RAM 72224 72224 0 0.0
k32w1+release FLASH 710552 710552 0 0.0
RAM 72116 72116 0 0.0
lock mcxw71+release FLASH 775632 775632 0 0.0
RAM 67692 67692 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1669252 1669252 0 0.0
RAM 212408 212408 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1573340 1573340 0 0.0
RAM 208592 208592 0 0.0
light cy8ckit_062s2_43012 FLASH 1447540 1447540 0 0.0
RAM 197296 197296 0 0.0
lock cy8ckit_062s2_43012 FLASH 1477444 1477444 0 0.0
RAM 225016 225016 0 0.0
qpg lighting-app qpg6105+debug FLASH 668332 668332 0 0.0
RAM 105244 105244 0 0.0
lock-app qpg6105+debug FLASH 626528 626528 0 0.0
RAM 99872 99872 0 0.0
stm32 light STM32WB5MM-DK FLASH 466004 466004 0 0.0
RAM 141496 141496 0 0.0
telink bridge-app tl7218x FLASH 694620 694620 0 0.0
RAM 101908 101908 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 774330 774330 0 0.0
RAM 50060 50060 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 781436 781436 0 0.0
RAM 109232 109232 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 703582 703582 0 0.0
RAM 62624 62624 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 741536 741536 0 0.0
RAM 85796 85796 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 607758 607758 0 0.0
RAM 119448 119448 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 816746 816750 4 0.0
RAM 107500 107500 0 0.0
tizen all-clusters-app arm unknown 5224 5224 0 0.0
FLASH 1822448 1822448 0 0.0
RAM 95164 95164 0 0.0
chip-tool-ubsan arm unknown 20600 20600 0 0.0
FLASH 20893806 20893806 0 0.0
RAM 9084072 9084072 0 0.0

}

public_deps = [
"${chip_root}/src/platform:platform_base",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we need platform-base?
Can these be "deps" instead of "public_deps" (given that changes occur in cpp only, so we do not need to expose these beyond that in headers)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

platform_base was here before my changes. I've just add tracing_buildconfig here.

@j0tunn
Copy link
Contributor Author

j0tunn commented May 28, 2025

@andy31415 Can you suggest somebody who can review this PR. Looks like CI still waiting for second approve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants