Skip to content
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

Add tests to lib/support/SortUtils.h #32421

Merged
merged 5 commits into from
Mar 5, 2024

Conversation

tcarmelveilleux
Copy link
Contributor

@tcarmelveilleux tcarmelveilleux commented Mar 4, 2024

  • SortUtils.h has no tests. While it is apparently trivial, we should never have code that has no tests
  • BubbleSort could crash (never-ending loop due to integer overflow) when input size was == 0. Its use is removed and replaced by InsertionSort which is known to be faster on average. A better solution is to move to using STL sorts in the future, but this requires analysis of flash costs and STL usage, given lambdas are used with sorts many places.

Fixes #32420

Testing done:

  • Added missing unit tests.
  • All integration tests still pass.

- SortUtils.h has no tests. While it is apparently trivial,
  we should never have code that has no tests
- BubbleSort could crash (never-ending loop due to integer overflow)
  when input size was < 2. Its use is removed and replaced by InsertionSort
  which is known to be faster on average. A better solution is to move
  to using STL sorts in the future, but this requires analysis of flash
  costs and STL usage, given lambdas are used with sorts many places.

Fixes project-chip#32420

Testing done:
- Added missing unit tests.
- All integration tests still pass.
Copy link

github-actions bot commented Mar 4, 2024

PR #32421: Size comparison from 4080775 to 1951448

Increases (3 builds for qpg, stm32)
platform target config section 4080775 1951448 change % change
qpg lighting-app qpg6105+debug (read/write) 1128992 1129040 48 0.0
.text 641376 641424 48 0.0
lock-app qpg6105+debug (read/write) 1089088 1089136 48 0.0
.text 601468 601516 48 0.0
stm32 light STM32WB5MM-DK (read/write) 600149 600197 48 0.0
.text 381864 381912 48 0.0
Decreases (2 builds for cc32xx)
platform target config section 4080775 1951448 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582154 582122 -32 -0.0
.text 493500 493468 -32 -0.0
lock CC3235SF_LAUNCHXL (read only) 627514 627482 -32 -0.0
.text 518396 518364 -32 -0.0
Full report (6 builds for cc32xx, mbed, qpg, stm32)
platform target config section 4080775 1951448 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582154 582122 -32 -0.0
(read/write) 207944 207944 0 0.0
.bss 201180 201180 0 0.0
.data 1640 1640 0 0.0
.rodata 86530 86530 0 0.0
.text 493500 493468 -32 -0.0
lock CC3235SF_LAUNCHXL (read only) 627514 627482 -32 -0.0
(read/write) 208288 208288 0 0.0
.bss 201672 201672 0 0.0
.data 1496 1496 0 0.0
.rodata 106994 106994 0 0.0
.text 518396 518364 -32 -0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2531592 2531592 0 0.0
.bss 220424 220424 0 0.0
.data 5200 5200 0 0.0
.text 1494276 1494276 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1128992 1129040 48 0.0
.bss 102432 102432 0 0.0
.data 820 820 0 0.0
.text 641376 641424 48 0.0
lock-app qpg6105+debug (read/write) 1089088 1089136 48 0.0
.bss 97176 97176 0 0.0
.data 840 840 0 0.0
.text 601468 601516 48 0.0
stm32 light STM32WB5MM-DK (read/write) 600149 600197 48 0.0
.bss 128296 128296 0 0.0
.data 668 668 0 0.0
.rodata 79596 79596 0 0.0
.text 381864 381912 48 0.0

Copy link

github-actions bot commented Mar 4, 2024

PR #32421: Size comparison from 4080775 to ae70df3

Increases (43 builds for bl702, cc13x4_26x4, cyw30739, efr32, esp32, k32w, linux, nrfconnect, qpg, stm32, telink)
platform target config section 4080775 ae70df3 change % change
bl702 lighting-app bl706-wifi (read/write) 1252854 1252858 4 0.0
.text 994210 994216 6 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 772932 772980 48 0.0
.text 690968 691016 48 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 789452 789492 40 0.0
.text 713236 713276 40 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 778108 778156 48 0.0
.text 675144 675192 48 0.0
pump-app LP_EM_CC1354P10_6 (read only) 730284 730332 48 0.0
.text 652648 652696 48 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 715908 715956 48 0.0
.text 642432 642480 48 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 568155 568203 48 0.0
.app_xip_area 457957 458005 48 0.0
lock cyw930739m2evb_01 (read/write) 550867 550915 48 0.0
.app_xip_area 435909 435957 48 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571043 571091 48 0.0
.app_xip_area 462349 462397 48 0.0
switch cyw930739m2evb_01 (read/write) 563931 563979 48 0.0
.app_xip_area 451957 452005 48 0.0
efr32 lighting-app BRD4187C (read/write) 1108920 1108984 64 0.0
.text 910340 910404 64 0.0
lock-app BRD4161A+wf200 (read/write) 1121900 1121924 24 0.0
.text 932348 932372 24 0.0
esp32 all-clusters-app c3devkit (read only) 1210446 1210466 20 0.0
.flash.text 1210446 1210466 20 0.0
m5stack (read only) 1252815 1252867 52 0.0
.flash.text 1246651 1246703 52 0.0
k32w contact k32w0+release (read only) 605184 605232 48 0.0
.text 604648 604696 48 0.0
k32w1+release (read/write) 746548 746596 48 0.0
.text 625200 625248 48 0.0
light k32w0+release (read only) 609128 609176 48 0.0
.text 608592 608640 48 0.0
k32w1+release (read/write) 789448 789496 48 0.0
.text 667504 667552 48 0.0
lock k32w0+release (read only) 588720 588768 48 0.0
.text 588184 588232 48 0.0
linux chip-tool-ipv6only arm64 (read/write) 588400 588512 112 0.0
lighting-app debug+rpc+ui (read only) 5516497 5516593 96 0.0
.rodata 354004 354164 160 0.0
thermostat-no-ble arm64 (read/write) 242064 242160 96 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1102036 1102084 48 0.0
text 810680 810724 44 0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1221588 1221636 48 0.0
text 806404 806448 44 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1050440 1050488 48 0.0
text 772732 772780 48 0.0
qpg lighting-app qpg6105+debug (read/write) 1128992 1129040 48 0.0
.text 641376 641424 48 0.0
lock-app qpg6105+debug (read/write) 1089088 1089136 48 0.0
.text 601468 601516 48 0.0
stm32 light STM32WB5MM-DK (read/write) 600149 600197 48 0.0
.text 381864 381912 48 0.0
telink air-quality-sensor-app tlsr9528a_retention (read/write) 822878 822902 24 0.0
text 615784 615808 24 0.0
all-clusters-app tlsr9518adk80d (read/write) 1091584 1091608 24 0.0
text 792816 792840 24 0.0
all-clusters-minimal-app tlsr9528a (read/write) 1049080 1049104 24 0.0
text 764164 764188 24 0.0
bridge-app tlsr9518adk80d (read/write) 909768 909792 24 0.0
text 651614 651638 24 0.0
contact-sensor-app tlsr9528a_retention (read/write) 824558 824582 24 0.0
text 617522 617546 24 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read/write) 930260 930284 24 0.0
text 697660 697684 24 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read/write) 1072964 1072988 24 0.0
text 777018 777042 24 0.0
lock-app-dfu tlsr9528a (read/write) 902636 902660 24 0.0
text 652904 652928 24 0.0
ota-requestor-app tlsr9518adk80d (read/write) 928912 928936 24 0.0
text 670798 670822 24 0.0
pump-app tlsr9258a_retention (read/write) 827118 827142 24 0.0
text 620478 620502 24 0.0
pump-controller-app tlsr9518adk80d (read/write) 790832 790856 24 0.0
text 591230 591254 24 0.0
smoke_co_alarm-app tlsr9528a_retention (read/write) 832094 832118 24 0.0
text 623892 623916 24 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read/write) 850793 850817 24 0.0
text 635940 635964 24 0.0
thermostat tlsr9518adk80d (read/write) 816492 816516 24 0.0
text 610938 610962 24 0.0
window-covering tlsr9258a (read/write) 834596 834620 24 0.0
text 626194 626218 24 0.0
Decreases (31 builds for bl602, bl702, bl702l, cc32xx, efr32, linux, psoc6)
platform target config section 4080775 ae70df3 change % change
bl602 lighting-app bl602 (read/write) 1436234 1436226 -8 -0.0
.text 1102466 1102464 -2 -0.0
bl602+mfd .text 1117784 1117782 -2 -0.0
bl602+rpc .text 1134112 1134110 -2 -0.0
bl702 lighting-app bl702 (read/write) 1200575 1200571 -4 -0.0
.text 971246 971244 -2 -0.0
bl702+mfd .text 983256 983254 -2 -0.0
bl702+rpc (read/write) 1292303 1292299 -4 -0.0
.text 1046198 1046196 -2 -0.0
bl706-eth (read/write) 1018653 1018649 -4 -0.0
.text 762738 762736 -2 -0.0
bl702l lighting-app bl702l .text 964372 964370 -2 -0.0
bl702l+mfd (read/write) 1181584 1181580 -4 -0.0
.text 976694 976692 -2 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582154 582122 -32 -0.0
.text 493500 493468 -32 -0.0
lock CC3235SF_LAUNCHXL (read only) 627514 627482 -32 -0.0
.text 518396 518364 -32 -0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 931504 931464 -40 -0.0
.text 732204 732164 -40 -0.0
window-app BRD4187C (read/write) 1155512 1155472 -40 -0.0
.text 984780 984740 -40 -0.0
linux air-purifier-app debug (read only) 2611669 2611477 -192 -0.0
.text 2250053 2249861 -192 -0.0
all-clusters-app debug (read only) 5918105 5917929 -176 -0.0
.text 5135555 5135379 -176 -0.0
all-clusters-minimal-app debug (read only) 5198657 5198481 -176 -0.0
.text 4675747 4675571 -176 -0.0
bridge-app debug (read only) 4593121 4592945 -176 -0.0
.text 4143987 4143811 -176 -0.0
chip-tool debug (read only) 12029273 12029097 -176 -0.0
.text 10875251 10875075 -176 -0.0
chip-tool-ipv6only arm64 (read only) 11353420 11353308 -112 -0.0
.text 10120840 10120728 -112 -0.0
lighting-app debug+rpc+ui .text 4915939 4915875 -64 -0.0
lock-app debug (read only) 4660865 4660673 -192 -0.0
.text 4194355 4194163 -192 -0.0
ota-provider-app debug (read only) 4292697 4292521 -176 -0.0
.text 3892323 3892147 -176 -0.0
ota-requestor-app debug (read only) 4422153 4421961 -192 -0.0
.text 4011091 4010899 -192 -0.0
shell debug (read only) 2885913 2885737 -176 -0.0
.text 2527506 2527330 -176 -0.0
thermostat-no-ble arm64 (read only) 4412628 4412532 -96 -0.0
.text 3919016 3918920 -96 -0.0
tv-app debug (read only) 5700889 5700713 -176 -0.0
.text 5169251 5169075 -176 -0.0
tv-casting-app debug (read only) 9860073 9859897 -176 -0.0
.text 9011779 9011603 -176 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1795300 1795268 -32 -0.0
.text 1588060 1588028 -32 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1717396 1717364 -32 -0.0
.text 1513308 1513276 -32 -0.0
light cy8ckit_062s2_43012 (read/write) 1636516 1636484 -32 -0.0
.text 1439156 1439124 -32 -0.0
lock cy8ckit_062s2_43012 (read/write) 1666428 1666396 -32 -0.0
.text 1441908 1441876 -32 -0.0
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
platform target config section 4080775 ae70df3 change % change
bl602 lighting-app bl602 (read/write) 1436234 1436226 -8 -0.0
.bss 85304 85304 0 0.0
.data 9496 9496 0 0.0
.rodata 158324 158324 0 0.0
.text 1102466 1102464 -2 -0.0
bl602+mfd (read/write) 1450650 1450650 0 0.0
.bss 85464 85464 0 0.0
.data 9472 9472 0 0.0
.rodata 157284 157284 0 0.0
.text 1117784 1117782 -2 -0.0
bl602+rpc (read/write) 1483882 1483882 0 0.0
.bss 93336 93336 0 0.0
.data 9880 9880 0 0.0
.rodata 165900 165900 0 0.0
.text 1134112 1134110 -2 -0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1200575 1200571 -4 -0.0
.bss 11117 11117 0 0.0
.data 3680 3680 0 0.0
.rodata 107680 107680 0 0.0
.text 971246 971244 -2 -0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1211627 1211627 0 0.0
.bss 11293 11293 0 0.0
.data 3656 3656 0 0.0
.rodata 106620 106620 0 0.0
.text 983256 983254 -2 -0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1292303 1292299 -4 -0.0
.bss 19581 19581 0 0.0
.data 4224 4224 0 0.0
.rodata 123052 123052 0 0.0
.text 1046198 1046196 -2 -0.0
bl706-eth (read/write) 1018653 1018649 -4 -0.0
.bss 23692 23692 0 0.0
.data 3256 3256 0 0.0
.rodata 101012 101012 0 0.0
.text 762738 762736 -2 -0.0
bl706-wifi (read/write) 1252854 1252858 4 0.0
.bss 10561 10561 0 0.0
.data 3696 3696 0 0.0
.rodata 122012 122012 0 0.0
.text 994210 994216 6 0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1170176 1170176 0 0.0
.bss 16312 16312 0 0.0
.data 5040 5040 0 0.0
.rodata 101684 101684 0 0.0
.text 964372 964370 -2 -0.0
bl702l+mfd (read only) 512 512 0 0.0
(read/write) 1181584 1181580 -4 -0.0
.bss 16488 16488 0 0.0
.data 5024 5024 0 0.0
.rodata 100624 100624 0 0.0
.text 976694 976692 -2 -0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 772932 772980 48 0.0
(read/write) 168576 168576 0 0.0
.bss 90580 90580 0 0.0
.data 3560 3560 0 0.0
.rodata 81700 81700 0 0.0
.text 690968 691016 48 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 789452 789492 40 0.0
(read/write) 178824 178824 0 0.0
.bss 100828 100828 0 0.0
.data 3560 3560 0 0.0
.rodata 75948 75948 0 0.0
.text 713236 713276 40 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 778108 778156 48 0.0
(read/write) 173264 173264 0 0.0
.bss 95268 95268 0 0.0
.data 3560 3560 0 0.0
.rodata 102700 102700 0 0.0
.text 675144 675192 48 0.0
pump-app LP_EM_CC1354P10_6 (read only) 730284 730332 48 0.0
(read/write) 167544 167544 0 0.0
.bss 89312 89312 0 0.0
.data 3552 3552 0 0.0
.rodata 77372 77372 0 0.0
.text 652648 652696 48 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 715908 715956 48 0.0
(read/write) 167752 167752 0 0.0
.bss 89536 89536 0 0.0
.data 3544 3544 0 0.0
.rodata 73212 73212 0 0.0
.text 642432 642480 48 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582154 582122 -32 -0.0
(read/write) 207944 207944 0 0.0
.bss 201180 201180 0 0.0
.data 1640 1640 0 0.0
.rodata 86530 86530 0 0.0
.text 493500 493468 -32 -0.0
lock CC3235SF_LAUNCHXL (read only) 627514 627482 -32 -0.0
(read/write) 208288 208288 0 0.0
.bss 201672 201672 0 0.0
.data 1496 1496 0 0.0
.rodata 106994 106994 0 0.0
.text 518396 518364 -32 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 568155 568203 48 0.0
.app_xip_area 457957 458005 48 0.0
.bss 65032 65032 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 550867 550915 48 0.0
.app_xip_area 435909 435957 48 0.0
.bss 69784 69784 0 0.0
.data 752 752 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571043 571091 48 0.0
.app_xip_area 462349 462397 48 0.0
.bss 63568 63568 0 0.0
.data 704 704 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 563931 563979 48 0.0
.app_xip_area 451957 452005 48 0.0
.bss 66768 66768 0 0.0
.data 784 784 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 931504 931464 -40 -0.0
.bss 197888 197888 0 0.0
.data 1388 1388 0 0.0
.text 732204 732164 -40 -0.0
BRD4187C (read/write) 1108920 1108984 64 0.0
.bss 195152 195152 0 0.0
.data 3408 3408 0 0.0
.text 910340 910404 64 0.0
lock-app BRD4161A+wf200 (read/write) 1121900 1121924 24 0.0
.bss 186740 186740 0 0.0
.data 2792 2792 0 0.0
.text 932348 932372 24 0.0
window-app BRD4187C (read/write) 1155512 1155472 -40 -0.0
.bss 167392 167392 0 0.0
.data 3320 3320 0 0.0
.text 984780 984740 -40 -0.0
esp32 all-clusters-app c3devkit (read only) 1210446 1210466 20 0.0
(read/write) 1749440 1749440 0 0.0
.dram0.bss 74272 74272 0 0.0
.dram0.data 13620 13620 0 0.0
.flash.rodata 252016 252016 0 0.0
.flash.text 1210446 1210466 20 0.0
.iram0.text 75530 75530 0 0.0
m5stack (read only) 1252815 1252867 52 0.0
(read/write) 536004 536004 0 0.0
.dram0.bss 81184 81184 0 0.0
.dram0.data 35164 35164 0 0.0
.flash.rodata 283736 283736 0 0.0
.flash.text 1246651 1246703 52 0.0
.iram0.text 125403 125403 0 0.0
k32w contact k32w0+release (read only) 605184 605232 48 0.0
(read/write) 79584 79584 0 0.0
.bss 67404 67404 0 0.0
.data 2196 2196 0 0.0
.text 604648 604696 48 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 746548 746596 48 0.0
.bss 79164 79164 0 0.0
.data 2816 2816 0 0.0
.text 625200 625248 48 0.0
light k32w0+release (read only) 609128 609176 48 0.0
(read/write) 79468 79468 0 0.0
.bss 67284 67284 0 0.0
.data 2200 2200 0 0.0
.text 608592 608640 48 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 789448 789496 48 0.0
.bss 80556 80556 0 0.0
.data 2032 2032 0 0.0
.text 667504 667552 48 0.0
lock k32w0+release (read only) 588720 588768 48 0.0
(read/write) 77456 77456 0 0.0
.bss 65324 65324 0 0.0
.data 2148 2148 0 0.0
.text 588184 588232 48 0.0
linux air-purifier-app debug (read only) 2611669 2611477 -192 -0.0
(read/write) 128832 128832 0 0.0
.bss 46448 46448 0 0.0
.data 2240 2240 0 0.0
.data.rel.ro 74216 74216 0 0.0
.dynamic 608 608 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 184272 184272 0 0.0
.text 2250053 2249861 -192 -0.0
all-clusters-app debug (read only) 5918105 5917929 -176 -0.0
(read/write) 480272 480272 0 0.0
.bss 134752 134752 0 0.0
.data 4496 4496 0 0.0
.data.rel.ro 333608 333608 0 0.0
.dynamic 624 624 0 0.0
.got 5360 5360 0 0.0
.init 27 27 0 0.0
.init_array 1384 1384 0 0.0
.rodata 349296 349296 0 0.0
.text 5135555 5135379 -176 -0.0
all-clusters-minimal-app debug (read only) 5198657 5198481 -176 -0.0
(read/write) 236192 236192 0 0.0
.bss 127552 127552 0 0.0
.data 4400 4400 0 0.0
.data.rel.ro 97176 97176 0 0.0
.dynamic 624 624 0 0.0
.got 5280 5280 0 0.0
.init 27 27 0 0.0
.init_array 1112 1112 0 0.0
.rodata 288322 288322 0 0.0
.text 4675747 4675571 -176 -0.0
bridge-app debug (read only) 4593121 4592945 -176 -0.0
(read/write) 217072 217072 0 0.0
.bss 118080 118080 0 0.0
.data 6176 6176 0 0.0
.data.rel.ro 86112 86112 0 0.0
.dynamic 624 624 0 0.0
.got 5248 5248 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 228962 228962 0 0.0
.text 4143987 4143811 -176 -0.0
chip-tool debug (read only) 12029273 12029097 -176 -0.0
(read/write) 521448 521448 0 0.0
.bss 94392 94392 0 0.0
.data 5122 5122 0 0.0
.data.rel.ro 414712 414712 0 0.0
.dynamic 624 624 0 0.0
.got 5768 5768 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 448345 448345 0 0.0
.text 10875251 10875075 -176 -0.0
chip-tool-ipv6only arm64 (read only) 11353420 11353308 -112 -0.0
(read/write) 588400 588512 112 0.0
.bss 103464 103464 0 0.0
.data 4496 4496 0 0.0
.data.rel.ro 454496 454496 0 0.0
.dynamic 512 512 0 0.0
.got 16984 16984 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 354364 354364 0 0.0
.text 10120840 10120728 -112 -0.0
lighting-app debug+rpc+ui (read only) 5516497 5516593 96 0.0
(read/write) 225896 225896 0 0.0
.bss 119048 119048 0 0.0
.data 4832 4832 0 0.0
.data.rel.ro 94512 94512 0 0.0
.dynamic 672 672 0 0.0
.got 5888 5888 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 354004 354164 160 0.0
.text 4915939 4915875 -64 -0.0
lock-app debug (read only) 4660865 4660673 -192 -0.0
(read/write) 204688 204688 0 0.0
.bss 113504 113504 0 0.0
.data 4128 4128 0 0.0
.data.rel.ro 80360 80360 0 0.0
.dynamic 624 624 0 0.0
.got 5200 5200 0 0.0
.init 27 27 0 0.0
.init_array 840 840 0 0.0
.rodata 254978 254978 0 0.0
.text 4194355 4194163 -192 -0.0
ota-provider-app debug (read only) 4292697 4292521 -176 -0.0
(read/write) 193192 193192 0 0.0
.bss 113216 113216 0 0.0
.data 4336 4336 0 0.0
.data.rel.ro 69744 69744 0 0.0
.dynamic 624 624 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 704 704 0 0.0
.rodata 207522 207522 0 0.0
.text 3892323 3892147 -176 -0.0
ota-requestor-app debug (read only) 4422153 4421961 -192 -0.0
(read/write) 197592 197592 0 0.0
.bss 114112 114112 0 0.0
.data 4736 4736 0 0.0
.data.rel.ro 72864 72864 0 0.0
.dynamic 624 624 0 0.0
.got 4472 4472 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 213666 213666 0 0.0
.text 4011091 4010899 -192 -0.0
shell debug (read only) 2885913 2885737 -176 -0.0
(read/write) 156224 156224 0 0.0
.bss 62640 62640 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 86432 86432 0 0.0
.dynamic 592 592 0 0.0
.got 4072 4072 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 185184 185184 0 0.0
.text 2527506 2527330 -176 -0.0
thermostat-no-ble arm64 (read only) 4412628 4412532 -96 -0.0
(read/write) 242064 242160 96 0.0
.bss 121768 121768 0 0.0
.data 3360 3360 0 0.0
.data.rel.ro 103576 103576 0 0.0
.dynamic 512 512 0 0.0
.got 8616 8616 0 0.0
.init 24 24 0 0.0
.init_array 416 416 0 0.0
.rodata 159116 159116 0 0.0
.text 3919016 3918920 -96 -0.0
tv-app debug (read only) 5700889 5700713 -176 -0.0
(read/write) 352424 352424 0 0.0
.bss 244272 244272 0 0.0
.data 6496 6496 0 0.0
.data.rel.ro 94392 94392 0 0.0
.dynamic 624 624 0 0.0
.got 5496 5496 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 289698 289698 0 0.0
.text 5169251 5169075 -176 -0.0
tv-casting-app debug (read only) 9860073 9859897 -176 -0.0
(read/write) 340168 340168 0 0.0
.bss 156176 156176 0 0.0
.data 2944 2944 0 0.0
.data.rel.ro 174168 174168 0 0.0
.dynamic 624 624 0 0.0
.got 5072 5072 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 382672 382672 0 0.0
.text 9011779 9011603 -176 -0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2531592 2531592 0 0.0
.bss 220424 220424 0 0.0
.data 5200 5200 0 0.0
.text 1494276 1494276 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1102036 1102084 48 0.0
bss 130807 130807 0 0.0
rodata 112812 112812 0 0.0
text 810680 810724 44 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1221588 1221636 48 0.0
bss 122897 122897 0 0.0
rodata 141772 141772 0 0.0
text 806404 806448 44 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1050440 1050488 48 0.0
bss 129665 129665 0 0.0
rodata 100184 100184 0 0.0
text 772732 772780 48 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 834488 834488 0 0.0
(read/write) 1795300 1795268 -32 -0.0
.bss 196188 196188 0 0.0
.data 2664 2664 0 0.0
.text 1588060 1588028 -32 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837640 837640 0 0.0
(read/write) 1717396 1717364 -32 -0.0
.bss 193068 193068 0 0.0
.data 2632 2632 0 0.0
.text 1513308 1513276 -32 -0.0
light cy8ckit_062s2_43012 (read only) 844368 844368 0 0.0
(read/write) 1636516 1636484 -32 -0.0
.bss 186532 186532 0 0.0
.data 2440 2440 0 0.0
.text 1439156 1439124 -32 -0.0
lock cy8ckit_062s2_43012 (read only) 817208 817208 0 0.0
(read/write) 1666428 1666396 -32 -0.0
.bss 213692 213692 0 0.0
.data 2440 2440 0 0.0
.text 1441908 1441876 -32 -0.0
qpg lighting-app qpg6105+debug (read/write) 1128992 1129040 48 0.0
.bss 102432 102432 0 0.0
.data 820 820 0 0.0
.text 641376 641424 48 0.0
lock-app qpg6105+debug (read/write) 1089088 1089136 48 0.0
.bss 97176 97176 0 0.0
.data 840 840 0 0.0
.text 601468 601516 48 0.0
stm32 light STM32WB5MM-DK (read/write) 600149 600197 48 0.0
.bss 128296 128296 0 0.0
.data 668 668 0 0.0
.rodata 79596 79596 0 0.0
.text 381864 381912 48 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 822878 822902 24 0.0
bss 49636 49636 0 0.0
text 615784 615808 24 0.0
all-clusters-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 1091584 1091608 24 0.0
bss 101756 101756 0 0.0
text 792816 792840 24 0.0
all-clusters-minimal-app tlsr9528a (read only) 47960 47960 0 0.0
(read/write) 1049080 1049104 24 0.0
bss 110060 110060 0 0.0
text 764164 764188 24 0.0
bridge-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 909768 909792 24 0.0
bss 93092 93092 0 0.0
text 651614 651638 24 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 824558 824582 24 0.0
bss 49684 49684 0 0.0
text 617522 617546 24 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 930260 930284 24 0.0
bss 77684 77684 0 0.0
text 697660 697684 24 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 29122 29122 0 0.0
(read/write) 1072964 1072988 24 0.0
bss 100172 100172 0 0.0
text 777018 777042 24 0.0
lock-app-dfu tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 902636 902660 24 0.0
bss 69148 69148 0 0.0
text 652904 652928 24 0.0
ota-requestor-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 928912 928936 24 0.0
bss 92672 92672 0 0.0
text 670798 670822 24 0.0
pump-app tlsr9258a_retention (read only) 51774 51774 0 0.0
(read/write) 827118 827142 24 0.0
bss 49792 49792 0 0.0
text 620478 620502 24 0.0
pump-controller-app tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 790832 790856 24 0.0
bss 55992 55992 0 0.0
text 591230 591254 24 0.0
shell tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 677148 677148 0 0.0
bss 73672 73672 0 0.0
text 462406 462406 0 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 832094 832118 24 0.0
bss 51316 51316 0 0.0
text 623892 623916 24 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 32220 32220 0 0.0
(read/write) 850793 850817 24 0.0
bss 59468 59468 0 0.0
text 635940 635964 24 0.0
thermostat tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 816492 816516 24 0.0
bss 56280 56280 0 0.0
text 610938 610962 24 0.0
window-covering tlsr9258a (read only) 51584 51584 0 0.0
(read/write) 834596 834620 24 0.0
bss 68056 68056 0 0.0
text 626194 626218 24 0.0

Copy link

github-actions bot commented Mar 5, 2024

PR #32421: Size comparison from 5c59934 to bc5cf90

Increases (42 builds for bl702, cc13x4_26x4, cyw30739, efr32, esp32, k32w, linux, nrfconnect, qpg, stm32, telink)
platform target config section 5c59934 bc5cf90 change % change
bl702 lighting-app bl706-wifi (read/write) 1253386 1253390 4 0.0
.text 994722 994728 6 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 773084 773132 48 0.0
.text 691100 691148 48 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 789596 789636 40 0.0
.text 713368 713408 40 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 778276 778324 48 0.0
.text 675292 675340 48 0.0
pump-app LP_EM_CC1354P10_6 (read only) 730428 730476 48 0.0
.text 652780 652828 48 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 716052 716100 48 0.0
.text 642564 642612 48 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 568323 568371 48 0.0
.app_xip_area 458101 458149 48 0.0
lock cyw930739m2evb_01 (read/write) 551035 551083 48 0.0
.app_xip_area 436053 436101 48 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571211 571259 48 0.0
.app_xip_area 462493 462541 48 0.0
switch cyw930739m2evb_01 (read/write) 564107 564155 48 0.0
.app_xip_area 452109 452157 48 0.0
efr32 lighting-app BRD4187C (read/write) 1109092 1109148 56 0.0
.text 910484 910540 56 0.0
lock-app BRD4161A+wf200 (read/write) 1122076 1122132 56 0.0
.text 932492 932548 56 0.0
esp32 all-clusters-app c3devkit (read only) 1210646 1210666 20 0.0
.flash.text 1210646 1210666 20 0.0
m5stack (read only) 1252975 1253027 52 0.0
.flash.text 1246811 1246863 52 0.0
k32w contact k32w0+release (read only) 605328 605376 48 0.0
.text 604792 604840 48 0.0
k32w1+release (read/write) 746728 746776 48 0.0
.text 625352 625400 48 0.0
light k32w0+release (read only) 609264 609312 48 0.0
.text 608728 608776 48 0.0
k32w1+release (read/write) 789612 789660 48 0.0
.text 667640 667688 48 0.0
lock k32w0+release (read only) 588864 588912 48 0.0
.text 588328 588376 48 0.0
linux chip-tool-ipv6only arm64 (read/write) 587416 587512 96 0.0
thermostat-no-ble arm64 (read/write) 245096 245192 96 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1102340 1102372 32 0.0
text 810824 810868 44 0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1221788 1221820 32 0.0
text 806548 806592 44 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1050584 1050632 48 0.0
text 772864 772912 48 0.0
qpg lighting-app qpg6105+debug (read/write) 1129148 1129196 48 0.0
.text 641528 641576 48 0.0
lock-app qpg6105+debug (read/write) 1089220 1089268 48 0.0
.text 601604 601652 48 0.0
stm32 light STM32WB5MM-DK (read/write) 600321 600369 48 0.0
.text 382000 382048 48 0.0
telink air-quality-sensor-app tlsr9528a_retention (read/write) 823106 823130 24 0.0
text 615972 615996 24 0.0
all-clusters-app tlsr9518adk80d (read/write) 1091820 1091844 24 0.0
text 793012 793036 24 0.0
all-clusters-minimal-app tlsr9528a (read/write) 1049292 1049316 24 0.0
text 764334 764358 24 0.0
bridge-app tlsr9518adk80d (read/write) 909972 909996 24 0.0
text 651784 651808 24 0.0
contact-sensor-app tlsr9528a_retention (read/write) 824762 824786 24 0.0
text 617686 617710 24 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read/write) 930472 930496 24 0.0
text 697830 697854 24 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read/write) 1073168 1073192 24 0.0
text 777188 777212 24 0.0
lock-app-dfu tlsr9528a (read/write) 902848 902872 24 0.0
text 653074 653098 24 0.0
ota-requestor-app tlsr9518adk80d (read/write) 929124 929148 24 0.0
text 670968 670992 24 0.0
pump-app tlsr9258a_retention (read/write) 827322 827346 24 0.0
text 620642 620666 24 0.0
pump-controller-app tlsr9518adk80d (read/write) 791036 791060 24 0.0
text 591400 591424 24 0.0
smoke_co_alarm-app tlsr9528a_retention (read/write) 832298 832322 24 0.0
text 624056 624080 24 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read/write) 851005 851029 24 0.0
text 636110 636134 24 0.0
thermostat tlsr9518adk80d (read/write) 816704 816728 24 0.0
text 611108 611132 24 0.0
window-covering tlsr9258a (read/write) 834808 834832 24 0.0
text 626364 626388 24 0.0
Decreases (31 builds for bl602, bl702, bl702l, cc32xx, efr32, linux, psoc6)
platform target config section 5c59934 bc5cf90 change % change
bl602 lighting-app bl602 (read/write) 1436782 1436774 -8 -0.0
.text 1102978 1102976 -2 -0.0
bl602+mfd .text 1118296 1118294 -2 -0.0
bl602+rpc .text 1134368 1134366 -2 -0.0
bl702 lighting-app bl702 (read/write) 1200851 1200847 -4 -0.0
.text 971502 971500 -2 -0.0
bl702+mfd .text 983512 983510 -2 -0.0
bl702+rpc (read/write) 1292595 1292591 -4 -0.0
.text 1046454 1046452 -2 -0.0
bl706-eth (read/write) 1018929 1018925 -4 -0.0
.text 762994 762992 -2 -0.0
bl702l lighting-app bl702l .text 964628 964626 -2 -0.0
bl702l+mfd (read/write) 1182372 1181856 -516 -0.0
.text 976950 976948 -2 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582554 582522 -32 -0.0
.text 493888 493856 -32 -0.0
lock CC3235SF_LAUNCHXL (read only) 627842 627810 -32 -0.0
.text 518720 518688 -32 -0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 931888 931856 -32 -0.0
.text 732564 732532 -32 -0.0
window-app BRD4187C (read/write) 1155900 1155868 -32 -0.0
.text 985140 985108 -32 -0.0
linux air-purifier-app debug (read only) 2612581 2612405 -176 -0.0
.text 2250965 2250789 -176 -0.0
all-clusters-app debug (read only) 5919033 5918841 -192 -0.0
.text 5136483 5136291 -192 -0.0
all-clusters-minimal-app debug (read only) 5199569 5199377 -192 -0.0
.text 4676659 4676467 -192 -0.0
bridge-app debug (read only) 4594033 4593857 -176 -0.0
.text 4144899 4144723 -176 -0.0
chip-tool debug (read only) 12030169 12029993 -176 -0.0
.text 10876147 1087597 -176 -0.0
chip-tool-ipv6only arm64 (read only) 11354476 11354380 -96 -0.0
.text 10121864 10121768 -96 -0.0
lighting-app debug+rpc+ui (read only) 5517681 5517505 -176 -0.0
.text 4916963 4916787 -176 -0.0
lock-app debug (read only) 4661761 4661585 -176 -0.0
.text 4195251 4195075 -176 -0.0
ota-provider-app debug (read only) 4293593 4293417 -176 -0.0
.text 3893219 3893043 -176 -0.0
ota-requestor-app debug (read only) 4423049 4422873 -176 -0.0
.text 4011987 4011811 -176 -0.0
shell debug (read only) 2886809 2886633 -176 -0.0
.text 2528402 2528226 -176 -0.0
thermostat-no-ble arm64 (read only) 4413700 4413604 -96 -0.0
.text 3920056 3919960 -96 -0.0
tv-app debug (read only) 5701801 5701609 -192 -0.0
.text 5170163 5169971 -192 -0.0
tv-casting-app debug (read only) 9860985 9860809 -176 -0.0
.text 9012691 9012515 -176 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1795756 1795724 -32 -0.0
.text 1588492 1588460 -32 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1717804 1717772 -32 -0.0
.text 1513684 1513652 -32 -0.0
light cy8ckit_062s2_43012 (read/write) 1636932 1636900 -32 -0.0
.text 1439540 1439508 -32 -0.0
lock cy8ckit_062s2_43012 (read/write) 1666820 1666788 -32 -0.0
.text 1442276 1442244 -32 -0.0
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
platform target config section 5c59934 bc5cf90 change % change
bl602 lighting-app bl602 (read/write) 1436782 1436774 -8 -0.0
.bss 85328 85328 0 0.0
.data 9496 9496 0 0.0
.rodata 158324 158324 0 0.0
.text 1102978 1102976 -2 -0.0
bl602+mfd (read/write) 1451182 1451182 0 0.0
.bss 85488 85488 0 0.0
.data 9472 9472 0 0.0
.rodata 157284 157284 0 0.0
.text 1118296 1118294 -2 -0.0
bl602+rpc (read/write) 1484174 1484174 0 0.0
.bss 93360 93360 0 0.0
.data 9880 9880 0 0.0
.rodata 165900 165900 0 0.0
.text 1134368 1134366 -2 -0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1200851 1200847 -4 -0.0
.bss 11133 11133 0 0.0
.data 3680 3680 0 0.0
.rodata 107680 107680 0 0.0
.text 971502 971500 -2 -0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1211903 1211903 0 0.0
.bss 11309 11309 0 0.0
.data 3656 3656 0 0.0
.rodata 106620 106620 0 0.0
.text 983512 983510 -2 -0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1292595 1292591 -4 -0.0
.bss 19613 19613 0 0.0
.data 4224 4224 0 0.0
.rodata 123052 123052 0 0.0
.text 1046454 1046452 -2 -0.0
bl706-eth (read/write) 1018929 1018925 -4 -0.0
.bss 23708 23708 0 0.0
.data 3256 3256 0 0.0
.rodata 101012 101012 0 0.0
.text 762994 762992 -2 -0.0
bl706-wifi (read/write) 1253386 1253390 4 0.0
.bss 10577 10577 0 0.0
.data 3696 3696 0 0.0
.rodata 122012 122012 0 0.0
.text 994722 994728 6 0.0
bl702l lighting-app bl702l (read/write) 1170964 1170964 0 0.0
.bss 16328 16328 0 0.0
.data 5040 5040 0 0.0
.rodata 101684 101684 0 0.0
.text 964628 964626 -2 -0.0
bl702l+mfd (read/write) 1182372 1181856 -516 -0.0
.bss 16504 16504 0 0.0
.data 5024 5024 0 0.0
.rodata 100624 100624 0 0.0
.text 976950 976948 -2 -0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 773084 773132 48 0.0
(read/write) 168600 168600 0 0.0
.bss 90604 90604 0 0.0
.data 3560 3560 0 0.0
.rodata 81716 81716 0 0.0
.text 691100 691148 48 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 789596 789636 40 0.0
(read/write) 178848 178848 0 0.0
.bss 100852 100852 0 0.0
.data 3560 3560 0 0.0
.rodata 75964 75964 0 0.0
.text 713368 713408 40 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 778276 778324 48 0.0
(read/write) 173288 173288 0 0.0
.bss 95292 95292 0 0.0
.data 3560 3560 0 0.0
.rodata 102716 102716 0 0.0
.text 675292 675340 48 0.0
pump-app LP_EM_CC1354P10_6 (read only) 730428 730476 48 0.0
(read/write) 167568 167568 0 0.0
.bss 89336 89336 0 0.0
.data 3552 3552 0 0.0
.rodata 77380 77380 0 0.0
.text 652780 652828 48 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 716052 716100 48 0.0
(read/write) 167776 167776 0 0.0
.bss 89560 89560 0 0.0
.data 3544 3544 0 0.0
.rodata 73220 73220 0 0.0
.text 642564 642612 48 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 582554 582522 -32 -0.0
(read/write) 207968 207968 0 0.0
.bss 201204 201204 0 0.0
.data 1640 1640 0 0.0
.rodata 86546 86546 0 0.0
.text 493888 493856 -32 -0.0
lock CC3235SF_LAUNCHXL (read only) 627842 627810 -32 -0.0
(read/write) 208312 208312 0 0.0
.bss 201696 201696 0 0.0
.data 1496 1496 0 0.0
.rodata 107002 107002 0 0.0
.text 518720 518688 -32 -0.0
cyw30739 light cyw930739m2evb_01 (read/write) 568323 568371 48 0.0
.app_xip_area 458101 458149 48 0.0
.bss 65056 65056 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 551035 551083 48 0.0
.app_xip_area 436053 436101 48 0.0
.bss 69808 69808 0 0.0
.data 752 752 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 571211 571259 48 0.0
.app_xip_area 462493 462541 48 0.0
.bss 63592 63592 0 0.0
.data 704 704 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 564107 564155 48 0.0
.app_xip_area 452109 452157 48 0.0
.bss 66792 66792 0 0.0
.data 784 784 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 931888 931856 -32 -0.0
.bss 197912 197912 0 0.0
.data 1392 1392 0 0.0
.text 732564 732532 -32 -0.0
BRD4187C (read/write) 1109092 1109148 56 0.0
.bss 195176 195176 0 0.0
.data 3412 3412 0 0.0
.text 910484 910540 56 0.0
lock-app BRD4161A+wf200 (read/write) 1122076 1122132 56 0.0
.bss 186764 186764 0 0.0
.data 2796 2796 0 0.0
.text 932492 932548 56 0.0
window-app BRD4187C (read/write) 1155900 1155868 -32 -0.0
.bss 167416 167416 0 0.0
.data 3324 3324 0 0.0
.text 985140 985108 -32 -0.0
esp32 all-clusters-app c3devkit (read only) 1210646 1210666 20 0.0
(read/write) 1749488 1749488 0 0.0
.dram0.bss 74296 74296 0 0.0
.dram0.data 13620 13620 0 0.0
.flash.rodata 252032 252032 0 0.0
.flash.text 1210646 1210666 20 0.0
.iram0.text 75530 75530 0 0.0
m5stack (read only) 1252975 1253027 52 0.0
(read/write) 536048 536048 0 0.0
.dram0.bss 81208 81208 0 0.0
.dram0.data 35164 35164 0 0.0
.flash.rodata 283756 283756 0 0.0
.flash.text 1246811 1246863 52 0.0
.iram0.text 125403 125403 0 0.0
k32w contact k32w0+release (read only) 605328 605376 48 0.0
(read/write) 79612 79612 0 0.0
.bss 67428 67428 0 0.0
.data 2200 2200 0 0.0
.text 604792 604840 48 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 746728 746776 48 0.0
.bss 79188 79188 0 0.0
.data 2816 2816 0 0.0
.text 625352 625400 48 0.0
light k32w0+release (read only) 609264 609312 48 0.0
(read/write) 79496 79496 0 0.0
.bss 67308 67308 0 0.0
.data 2204 2204 0 0.0
.text 608728 608776 48 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 789612 789660 48 0.0
.bss 80580 80580 0 0.0
.data 2032 2032 0 0.0
.text 667640 667688 48 0.0
lock k32w0+release (read only) 588864 588912 48 0.0
(read/write) 77484 77484 0 0.0
.bss 65348 65348 0 0.0
.data 2152 2152 0 0.0
.text 588328 588376 48 0.0
linux air-purifier-app debug (read only) 2612581 2612405 -176 -0.0
(read/write) 128864 128864 0 0.0
.bss 46480 46480 0 0.0
.data 2240 2240 0 0.0
.data.rel.ro 74216 74216 0 0.0
.dynamic 608 608 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 184272 184272 0 0.0
.text 2250965 2250789 -176 -0.0
all-clusters-app debug (read only) 5919033 5918841 -192 -0.0
(read/write) 480304 480304 0 0.0
.bss 134784 134784 0 0.0
.data 4496 4496 0 0.0
.data.rel.ro 333608 333608 0 0.0
.dynamic 624 624 0 0.0
.got 5360 5360 0 0.0
.init 27 27 0 0.0
.init_array 1384 1384 0 0.0
.rodata 349296 349296 0 0.0
.text 5136483 5136291 -192 -0.0
all-clusters-minimal-app debug (read only) 5199569 5199377 -192 -0.0
(read/write) 236256 236256 0 0.0
.bss 127616 127616 0 0.0
.data 4400 4400 0 0.0
.data.rel.ro 97176 97176 0 0.0
.dynamic 624 624 0 0.0
.got 5280 5280 0 0.0
.init 27 27 0 0.0
.init_array 1112 1112 0 0.0
.rodata 288322 288322 0 0.0
.text 4676659 4676467 -192 -0.0
bridge-app debug (read only) 4594033 4593857 -176 -0.0
(read/write) 217136 217136 0 0.0
.bss 118144 118144 0 0.0
.data 6176 6176 0 0.0
.data.rel.ro 86112 86112 0 0.0
.dynamic 624 624 0 0.0
.got 5248 5248 0 0.0
.init 27 27 0 0.0
.init_array 808 808 0 0.0
.rodata 228962 228962 0 0.0
.text 4144899 4144723 -176 -0.0
chip-tool debug (read only) 12030169 12029993 -176 -0.0
(read/write) 521480 521480 0 0.0
.bss 94424 94424 0 0.0
.data 5122 5122 0 0.0
.data.rel.ro 414712 414712 0 0.0
.dynamic 624 624 0 0.0
.got 5768 5768 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 448345 448345 0 0.0
.text 10876147 1087597 -176 -0.0
chip-tool-ipv6only arm64 (read only) 11354476 11354380 -96 -0.0
(read/write) 587416 587512 96 0.0
.bss 103512 103512 0 0.0
.data 4496 4496 0 0.0
.data.rel.ro 454496 454496 0 0.0
.dynamic 512 512 0 0.0
.got 16984 16984 0 0.0
.init 24 24 0 0.0
.init_array 256 256 0 0.0
.rodata 354364 354364 0 0.0
.text 10121864 10121768 -96 -0.0
lighting-app debug+rpc+ui (read only) 5517681 5517505 -176 -0.0
(read/write) 225960 225960 0 0.0
.bss 119112 119112 0 0.0
.data 4832 4832 0 0.0
.data.rel.ro 94512 94512 0 0.0
.dynamic 672 672 0 0.0
.got 5888 5888 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 354164 354164 0 0.0
.text 4916963 4916787 -176 -0.0
lock-app debug (read only) 4661761 4661585 -176 -0.0
(read/write) 204752 204752 0 0.0
.bss 113568 113568 0 0.0
.data 4128 4128 0 0.0
.data.rel.ro 80360 80360 0 0.0
.dynamic 624 624 0 0.0
.got 5200 5200 0 0.0
.init 27 27 0 0.0
.init_array 840 840 0 0.0
.rodata 254978 254978 0 0.0
.text 4195251 4195075 -176 -0.0
ota-provider-app debug (read only) 4293593 4293417 -176 -0.0
(read/write) 193224 193224 0 0.0
.bss 113248 113248 0 0.0
.data 4336 4336 0 0.0
.data.rel.ro 69744 69744 0 0.0
.dynamic 624 624 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 704 704 0 0.0
.rodata 207522 207522 0 0.0
.text 3893219 3893043 -176 -0.0
ota-requestor-app debug (read only) 4423049 4422873 -176 -0.0
(read/write) 197656 197656 0 0.0
.bss 114176 114176 0 0.0
.data 4736 4736 0 0.0
.data.rel.ro 72864 72864 0 0.0
.dynamic 624 624 0 0.0
.got 4472 4472 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 213666 213666 0 0.0
.text 4011987 4011811 -176 -0.0
shell debug (read only) 2886809 2886633 -176 -0.0
(read/write) 156256 156256 0 0.0
.bss 62672 62672 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 86432 86432 0 0.0
.dynamic 592 592 0 0.0
.got 4072 4072 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 185184 185184 0 0.0
.text 2528402 2528226 -176 -0.0
thermostat-no-ble arm64 (read only) 4413700 4413604 -96 -0.0
(read/write) 245096 245192 96 0.0
.bss 121800 121800 0 0.0
.data 3360 3360 0 0.0
.data.rel.ro 103576 103576 0 0.0
.dynamic 512 512 0 0.0
.got 8616 8616 0 0.0
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 159116 159116 0 0.0
.text 3920056 3919960 -96 -0.0
tv-app debug (read only) 5701801 5701609 -192 -0.0
(read/write) 352488 352488 0 0.0
.bss 244336 244336 0 0.0
.data 6496 6496 0 0.0
.data.rel.ro 94392 94392 0 0.0
.dynamic 624 624 0 0.0
.got 5496 5496 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 289698 289698 0 0.0
.text 5170163 5169971 -192 -0.0
tv-casting-app debug (read only) 9860985 9860809 -176 -0.0
(read/write) 340232 340232 0 0.0
.bss 156240 156240 0 0.0
.data 2944 2944 0 0.0
.data.rel.ro 174168 174168 0 0.0
.dynamic 624 624 0 0.0
.got 5072 5072 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 382672 382672 0 0.0
.text 9012691 9012515 -176 -0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2531736 2531736 0 0.0
.bss 220448 220448 0 0.0
.data 5200 5200 0 0.0
.text 1494420 1494420 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1102340 1102372 32 0.0
bss 130831 130831 0 0.0
rodata 112828 112828 0 0.0
text 810824 810868 44 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1221788 1221820 32 0.0
bss 122921 122921 0 0.0
rodata 141788 141788 0 0.0
text 806548 806592 44 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1050584 1050632 48 0.0
bss 129689 129689 0 0.0
rodata 100184 100184 0 0.0
text 772864 772912 48 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 834464 834464 0 0.0
(read/write) 1795756 1795724 -32 -0.0
.bss 196212 196212 0 0.0
.data 2664 2664 0 0.0
.text 1588492 1588460 -32 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837608 837608 0 0.0
(read/write) 1717804 1717772 -32 -0.0
.bss 193092 193092 0 0.0
.data 2640 2640 0 0.0
.text 1513684 1513652 -32 -0.0
light cy8ckit_062s2_43012 (read only) 844336 844336 0 0.0
(read/write) 1636932 1636900 -32 -0.0
.bss 186556 186556 0 0.0
.data 2448 2448 0 0.0
.text 1439540 1439508 -32 -0.0
lock cy8ckit_062s2_43012 (read only) 817184 817184 0 0.0
(read/write) 1666820 1666788 -32 -0.0
.bss 213716 213716 0 0.0
.data 2440 2440 0 0.0
.text 1442276 1442244 -32 -0.0
qpg lighting-app qpg6105+debug (read/write) 1129148 1129196 48 0.0
.bss 102456 102456 0 0.0
.data 824 824 0 0.0
.text 641528 641576 48 0.0
lock-app qpg6105+debug (read/write) 1089220 1089268 48 0.0
.bss 97200 97200 0 0.0
.data 844 844 0 0.0
.text 601604 601652 48 0.0
stm32 light STM32WB5MM-DK (read/write) 600321 600369 48 0.0
.bss 128320 128320 0 0.0
.data 668 668 0 0.0
.rodata 79604 79604 0 0.0
.text 382000 382048 48 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 823106 823130 24 0.0
bss 49660 49660 0 0.0
text 615972 615996 24 0.0
all-clusters-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 1091820 1091844 24 0.0
bss 101780 101780 0 0.0
text 793012 793036 24 0.0
all-clusters-minimal-app tlsr9528a (read only) 47960 47960 0 0.0
(read/write) 1049292 1049316 24 0.0
bss 110084 110084 0 0.0
text 764334 764358 24 0.0
bridge-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 909972 909996 24 0.0
bss 93116 93116 0 0.0
text 651784 651808 24 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 824762 824786 24 0.0
bss 49708 49708 0 0.0
text 617686 617710 24 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 930472 930496 24 0.0
bss 77708 77708 0 0.0
text 697830 697854 24 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 29122 29122 0 0.0
(read/write) 1073168 1073192 24 0.0
bss 100196 100196 0 0.0
text 777188 777212 24 0.0
lock-app-dfu tlsr9528a (read only) 51584 51584 0 0.0
(read/write) 902848 902872 24 0.0
bss 69172 69172 0 0.0
text 653074 653098 24 0.0
ota-requestor-app tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 929124 929148 24 0.0
bss 92696 92696 0 0.0
text 670968 670992 24 0.0
pump-app tlsr9258a_retention (read only) 51774 51774 0 0.0
(read/write) 827322 827346 24 0.0
bss 49816 49816 0 0.0
text 620642 620666 24 0.0
pump-controller-app tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 791036 791060 24 0.0
bss 56016 56016 0 0.0
text 591400 591424 24 0.0
shell tlsr9518adk80d (read only) 29042 29042 0 0.0
(read/write) 677148 677148 0 0.0
bss 73672 73672 0 0.0
text 462406 462406 0 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 832298 832322 24 0.0
bss 51340 51340 0 0.0
text 624056 624080 24 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 32220 32220 0 0.0
(read/write) 851005 851029 24 0.0
bss 59492 59492 0 0.0
text 636110 636134 24 0.0
thermostat tlsr9518adk80d (read only) 31872 31872 0 0.0
(read/write) 816704 816728 24 0.0
bss 56304 56304 0 0.0
text 611108 611132 24 0.0
window-covering tlsr9258a (read only) 51584 51584 0 0.0
(read/write) 834808 834832 24 0.0
bss 68080 68080 0 0.0
text 626364 626388 24 0.0

@andy31415 andy31415 merged commit 4393200 into project-chip:master Mar 5, 2024
58 of 59 checks passed
erwinpan1 pushed a commit to erwinpan1/connectedhomeip that referenced this pull request Mar 7, 2024
* Add tests to lib/support/SortUtils.h

- SortUtils.h has no tests. While it is apparently trivial,
  we should never have code that has no tests
- BubbleSort could crash (never-ending loop due to integer overflow)
  when input size was < 2. Its use is removed and replaced by InsertionSort
  which is known to be faster on average. A better solution is to move
  to using STL sorts in the future, but this requires analysis of flash
  costs and STL usage, given lambdas are used with sorts many places.

Fixes project-chip#32420

Testing done:
- Added missing unit tests.
- All integration tests still pass.

* Restyled by clang-format

* Fix build error on Android

* Add constness to operator==

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
huangxuyong pushed a commit to huangxuyong/connectedhomeip that referenced this pull request Mar 19, 2024
* Add tests to lib/support/SortUtils.h

- SortUtils.h has no tests. While it is apparently trivial,
  we should never have code that has no tests
- BubbleSort could crash (never-ending loop due to integer overflow)
  when input size was < 2. Its use is removed and replaced by InsertionSort
  which is known to be faster on average. A better solution is to move
  to using STL sorts in the future, but this requires analysis of flash
  costs and STL usage, given lambdas are used with sorts many places.

Fixes project-chip#32420

Testing done:
- Added missing unit tests.
- All integration tests still pass.

* Restyled by clang-format

* Fix build error on Android

* Add constness to operator==

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
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.

SortUtils.h is missing tests
4 participants