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

[GeneralDiagnostics]: Reporting change for the attributes not managed by the attribute store #11302

Merged
merged 1 commit into from
Nov 2, 2021
Merged

Conversation

yufengwangca
Copy link
Contributor

Problem

What is being fixed? Examples:

  • For the attribute not managed by the attribute store, there is no logic to mark them dirty and notify the report engine when those attributes change. We need to call notify the report engine in such case with the affected paths.

Change overview

Reporting change for the attributes not managed by the attribute store in general diagnostic cluster.

The platform delegate callback for NetworkInfo update will be done in a separate PR.

Testing

How was this tested? (at least one bullet point required)

  • Restart program "chip-lighting-app" and confirm the reboot count and reason attributes are reported
yufengw@yufengw-SEi:~/connectedhomeip/out/debug/standalone$ ./chip-lighting-app
[1635825616.790022][295517:295517] CHIP:DL:  PlatformManagerImpl::_InitChipStack
[1635825616.790126][295517:295517] CHIP:DL: MatterGeneralDiagnosticsPluginServerInitCallback->
[1635825616.815775][295517:295517] CHIP:DL: PlatformManagerImpl::HandleDeviceRebooted
[1635825616.815788][295517:295517] CHIP:ZCL: GeneralDiagnostics: OnDeviceRebooted
[1635825616.815834][295517:295517] CHIP:ZCL: MatterReportingAttributeChangeCallback
.....

@github-actions
Copy link

github-actions bot commented Nov 2, 2021

PR #11302: Size comparison from 12ec702 to d911143

Increases above 0.2%:

platform target config section 12ec702 d911143 change % change
efr32 lighting-app BRD4161A .data 1752 1760 8 0.5
BRD4161A+rpc .data 1852 1860 8 0.4
lock-app BRD4161A .data 1712 1720 8 0.5
window-app BRD4161A .data 1716 1724 8 0.5
k32w lighting-app k32w061+se05x+release .data 1900 1908 8 0.4
lock-app k32w061+debug .data 1864 1872 8 0.4
linux all-clusters-app debug .data 1010 1042 32 3.2
.data.rel.ro 62112 62288 176 0.3
bridge-app debug+rpc .data 976 992 16 1.6
.data.rel.ro 27368 27544 176 0.6
lighting-app debug+rpc (read/write) 100976 101200 224 0.2
.data 1106 1138 32 2.9
.data.rel.ro 54448 54608 160 0.3
tv-app debug .data 2032 2064 32 1.6
.data.rel.ro 58672 58832 160 0.3
p6 lock-app default .data 2416 2424 8 0.3
qpg lighting-app qpg6100+debug .data 1000 1008 8 0.8
lock-app qpg6100+debug .data 956 964 8 0.8
Increases (20 builds for efr32, k32w, linux, p6, qpg, telink)
platform target config section 12ec702 d911143 change % change
efr32 lighting-app BRD4161A (read only) 735400 736152 752 0.1
(read/write) 114444 114460 16 0.0
.bss 112692 112700 8 0.0
.data 1752 1760 8 0.5
.text 735392 736144 752 0.1
BRD4161A+rpc (read only) 722840 723592 752 0.1
(read/write) 131052 131068 16 0.0
.bss 129196 129204 8 0.0
.data 1852 1860 8 0.4
.text 722832 723584 752 0.1
lock-app BRD4161A (read only) 714684 715436 752 0.1
(read/write) 112260 112276 16 0.0
.bss 110548 110556 8 0.0
.data 1712 1720 8 0.5
.text 714676 715428 752 0.1
window-app BRD4161A (read only) 715596 716332 736 0.1
(read/write) 112584 112600 16 0.0
.bss 110868 110876 8 0.0
.data 1716 1724 8 0.5
.text 715588 716324 736 0.1
k32w lighting-app k32w061+se05x+release (read/write) 698232 698640 408 0.1
.bss 77688 77696 8 0.0
.data 1900 1908 8 0.4
.text 612844 613236 392 0.1
lock-app k32w061+debug (read/write) 590524 590940 416 0.1
.bss 68188 68204 16 0.0
.data 1864 1872 8 0.4
.text 514672 515064 392 0.1
shell k32w061+debug (read/write) 424772 424796 24 0.0
.bss 63280 63288 8 0.0
.text 359116 359132 16 0.0
linux all-clusters-app debug (read only) 1684105 1685585 1480 0.1
(read/write) 118992 119216 224 0.2
.bss 50608 50640 32 0.1
.data 1010 1042 32 3.2
.data.rel.ro 62112 62288 176 0.3
.rodata 137845 137941 96 0.1
.text 1413202 1414226 1024 0.1
bridge-app debug+rpc (read only) 1278533 1280013 1480 0.1
(read/write) 84104 84264 160 0.2
.data 976 992 16 1.6
.data.rel.ro 27368 27544 176 0.6
.rodata 109604 109700 96 0.1
.text 1073685 1074709 1024 0.1
chip-tool debug (read only) 4312925 4313101 176 0.0
.text 3829781 3829957 176 0.0
lighting-app debug+rpc (read only) 1537505 1538985 1480 0.1
(read/write) 100976 101200 224 0.2
.bss 40152 40184 32 0.1
.data 1106 1138 32 2.9
.data.rel.ro 54448 54608 160 0.3
.rodata 127761 127857 96 0.1
.text 1277362 1278386 1024 0.1
ota-provider-app debug (read only) 1236425 1236601 176 0.0
.text 1029922 1030098 176 0.0
ota-requestor-app debug (read only) 1293697 1293873 176 0.0
.text 1074306 1074482 176 0.0
shell debug (read only) 785041 785217 176 0.0
(read/write) 57664 57696 32 0.1
.bss 16072 16104 32 0.2
.text 606210 606386 176 0.0
tv-app debug (read only) 1770905 1772385 1480 0.1
(read/write) 288536 288760 224 0.1
.bss 222192 222224 32 0.0
.data 2032 2064 32 1.6
.data.rel.ro 58672 58832 160 0.3
.rodata 153176 153272 96 0.1
.text 1475826 1476850 1024 0.1
p6 lock-app default (read/write) 2166560 2167296 736 0.0
.bss 66184 66200 16 0.0
.data 2416 2424 8 0.3
.text 1124824 1125560 736 0.1
qpg lighting-app qpg6100+debug (read only) 489680 490064 384 0.1
.bss 50320 50328 8 0.0
.data 1000 1008 8 0.8
.text 484360 484744 384 0.1
lock-app qpg6100+debug (read only) 466008 466408 400 0.1
.bss 49272 49280 8 0.0
.data 956 964 8 0.8
.text 460688 461088 400 0.1
persistent-storage-app qpg6100+debug .bss 27752 27760 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 661606 661918 312 0.0
text 457328 457490 162 0.0
Decreases (1 build for p6)
platform target config section 12ec702 d911143 change % change
p6 lock-app default .heap 964744 964720 -24 -0.0
Full report (20 builds for efr32, k32w, linux, p6, qpg, telink)
platform target config section 12ec702 d911143 change % change
efr32 lighting-app BRD4161A (read only) 735400 736152 752 0.1
(read/write) 114444 114460 16 0.0
.bss 112692 112700 8 0.0
.data 1752 1760 8 0.5
.text 735392 736144 752 0.1
BRD4161A+rpc (read only) 722840 723592 752 0.1
(read/write) 131052 131068 16 0.0
.bss 129196 129204 8 0.0
.data 1852 1860 8 0.4
.text 722832 723584 752 0.1
lock-app BRD4161A (read only) 714684 715436 752 0.1
(read/write) 112260 112276 16 0.0
.bss 110548 110556 8 0.0
.data 1712 1720 8 0.5
.text 714676 715428 752 0.1
window-app BRD4161A (read only) 715596 716332 736 0.1
(read/write) 112584 112600 16 0.0
.bss 110868 110876 8 0.0
.data 1716 1724 8 0.5
.text 715588 716324 736 0.1
k32w lighting-app k32w061+se05x+release (read/write) 698232 698640 408 0.1
.bss 77688 77696 8 0.0
.data 1900 1908 8 0.4
.text 612844 613236 392 0.1
lock-app k32w061+debug (read/write) 590524 590940 416 0.1
.bss 68188 68204 16 0.0
.data 1864 1872 8 0.4
.text 514672 515064 392 0.1
shell k32w061+debug (read/write) 424772 424796 24 0.0
.bss 63280 63288 8 0.0
.data 672 672 0 0.0
.text 359116 359132 16 0.0
linux all-clusters-app debug (read only) 1684105 1685585 1480 0.1
(read/write) 118992 119216 224 0.2
.bss 50608 50640 32 0.1
.data 1010 1042 32 3.2
.data.rel.ro 62112 62288 176 0.3
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 137845 137941 96 0.1
.text 1413202 1414226 1024 0.1
bridge-app debug+rpc (read only) 1278533 1280013 1480 0.1
(read/write) 84104 84264 160 0.2
.bss 50768 50768 0 0.0
.data 976 992 16 1.6
.data.rel.ro 27368 27544 176 0.6
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 109604 109700 96 0.1
.text 1073685 1074709 1024 0.1
chip-tool debug (read only) 4312925 4313101 176 0.0
(read/write) 123552 123552 0 0.0
.bss 17680 17680 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 98880 98880 0 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 217488 217488 0 0.0
.text 3829781 3829957 176 0.0
lighting-app debug+rpc (read only) 1537505 1538985 1480 0.1
(read/write) 100976 101200 224 0.2
.bss 40152 40184 32 0.1
.data 1106 1138 32 2.9
.data.rel.ro 54448 54608 160 0.3
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 127761 127857 96 0.1
.text 1277362 1278386 1024 0.1
ota-provider-app debug (read only) 1236425 1236601 176 0.0
(read/write) 67072 67072 0 0.0
.bss 36608 36608 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24616 24616 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110376 110376 0 0.0
.text 1029922 1030098 176 0.0
ota-requestor-app debug (read only) 1293697 1293873 176 0.0
(read/write) 76392 76392 0 0.0
.bss 44864 44864 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25576 25576 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 121600 121600 0 0.0
.text 1074306 1074482 176 0.0
shell debug (read only) 785041 785217 176 0.0
(read/write) 57664 57696 32 0.1
.bss 16072 16104 32 0.2
.data 242 242 0 0.0
.data.rel.ro 36848 36848 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77295 77295 0 0.0
.text 606210 606386 176 0.0
tv-app debug (read only) 1770905 1772385 1480 0.1
(read/write) 288536 288760 224 0.1
.bss 222192 222224 32 0.0
.data 2032 2064 32 1.6
.data.rel.ro 58672 58832 160 0.3
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 153176 153272 96 0.1
.text 1475826 1476850 1024 0.1
p6 lock-app default (read/write) 2166560 2167296 736 0.0
.bss 66184 66200 16 0.0
.data 2416 2424 8 0.3
.heap 964744 964720 -24 -0.0
.text 1124824 1125560 736 0.1
qpg lighting-app qpg6100+debug (read only) 489680 490064 384 0.1
(read/write) 114144 114144 0 0.0
.bss 50320 50328 8 0.0
.data 1000 1008 8 0.8
.text 484360 484744 384 0.1
lock-app qpg6100+debug (read only) 466008 466408 400 0.1
(read/write) 114140 114140 0 0.0
.bss 49272 49280 8 0.0
.data 956 964 8 0.8
.text 460688 461088 400 0.1
persistent-storage-app qpg6100+debug (read only) 155820 155820 0 0.0
(read/write) 114140 114140 0 0.0
.bss 27752 27760 8 0.0
.data 372 372 0 0.0
.text 150500 150500 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 661606 661918 312 0.0
bss 68960 68960 0 0.0
noinit 33216 33216 0 0.0
text 457328 457490 162 0.0

@github-actions
Copy link

github-actions bot commented Nov 2, 2021

PR #11302: Size comparison from 12ec702 to 0fa30d2

Increases above 0.2%:

platform target config section 12ec702 0fa30d2 change % change
efr32 lighting-app BRD4161A .data 1752 1760 8 0.5
BRD4161A+rpc .data 1852 1860 8 0.4
lock-app BRD4161A .data 1712 1720 8 0.5
window-app BRD4161A .data 1716 1724 8 0.5
k32w lighting-app k32w061+se05x+release .data 1900 1908 8 0.4
lock-app k32w061+debug .data 1864 1872 8 0.4
linux all-clusters-app debug .data 1010 1042 32 3.2
.data.rel.ro 62112 62288 176 0.3
bridge-app debug+rpc .data 976 992 16 1.6
.data.rel.ro 27368 27544 176 0.6
lighting-app debug+rpc .data 1106 1138 32 2.9
.data.rel.ro 54448 54608 160 0.3
tv-app debug .data 2032 2064 32 1.6
.data.rel.ro 58672 58832 160 0.3
p6 lock-app default .data 2416 2424 8 0.3
qpg lighting-app qpg6100+debug .data 1000 1008 8 0.8
lock-app qpg6100+debug .data 956 964 8 0.8
Increases (35 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 12ec702 0fa30d2 change % change
efr32 lighting-app BRD4161A (read only) 735400 736152 752 0.1
(read/write) 114444 114460 16 0.0
.bss 112692 112700 8 0.0
.data 1752 1760 8 0.5
.text 735392 736144 752 0.1
BRD4161A+rpc (read only) 722840 723592 752 0.1
(read/write) 131052 131068 16 0.0
.bss 129196 129204 8 0.0
.data 1852 1860 8 0.4
.text 722832 723584 752 0.1
lock-app BRD4161A (read only) 714684 715436 752 0.1
(read/write) 112260 112276 16 0.0
.bss 110548 110556 8 0.0
.data 1712 1720 8 0.5
.text 714676 715428 752 0.1
window-app BRD4161A (read only) 715596 716332 736 0.1
(read/write) 112584 112600 16 0.0
.bss 110868 110876 8 0.0
.data 1716 1724 8 0.5
.text 715588 716324 736 0.1
esp32 all-clusters-app c3devkit (read only) 880170 880182 12 0.0
(read/write) 1307552 1307568 16 0.0
.dram0.bss 58424 58440 16 0.0
.flash.text 880170 880182 12 0.0
m5stack (read only) 911115 911119 4 0.0
(read/write) 427312 427328 16 0.0
.dram0.bss 60920 60936 16 0.0
.flash.text 911115 911119 4 0.0
k32w lighting-app k32w061+se05x+release (read/write) 698232 698640 408 0.1
.bss 77688 77696 8 0.0
.data 1900 1908 8 0.4
.text 612844 613236 392 0.1
lock-app k32w061+debug (read/write) 590524 590940 416 0.1
.bss 68188 68204 16 0.0
.data 1864 1872 8 0.4
.text 514672 515064 392 0.1
shell k32w061+debug (read/write) 424772 424796 24 0.0
.bss 63280 63288 8 0.0
.text 359116 359132 16 0.0
linux all-clusters-app debug (read only) 1684105 1685601 1496 0.1
(read/write) 118992 119216 224 0.2
.bss 50608 50640 32 0.1
.data 1010 1042 32 3.2
.data.rel.ro 62112 62288 176 0.3
.rodata 137845 137941 96 0.1
.text 1413202 1414242 1040 0.1
bridge-app debug+rpc (read only) 1278533 1280029 1496 0.1
(read/write) 84104 84264 160 0.2
.data 976 992 16 1.6
.data.rel.ro 27368 27544 176 0.6
.rodata 109604 109700 96 0.1
.text 1073685 1074725 1040 0.1
chip-tool debug (read only) 4312925 4313117 192 0.0
.text 3829781 3829973 192 0.0
lighting-app debug+rpc (read only) 1537505 1539001 1496 0.1
(read/write) 100976 101200 224 0.2
.bss 40152 40184 32 0.1
.data 1106 1138 32 2.9
.data.rel.ro 54448 54608 160 0.3
.rodata 127761 127857 96 0.1
.text 1277362 1278402 1040 0.1
ota-provider-app debug (read only) 1236425 1236617 192 0.0
.text 1029922 1030114 192 0.0
ota-requestor-app debug (read only) 1293697 1293889 192 0.0
.text 1074306 1074498 192 0.0
shell debug (read only) 785041 785233 192 0.0
(read/write) 57664 57696 32 0.1
.bss 16072 16104 32 0.2
.text 606210 606402 192 0.0
tv-app debug (read only) 1770905 1772401 1496 0.1
(read/write) 288536 288760 224 0.1
.bss 222192 222224 32 0.0
.data 2032 2064 32 1.6
.data.rel.ro 58672 58832 160 0.3
.rodata 153176 153272 96 0.1
.text 1475826 1476866 1040 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2293608 2294000 392 0.0
.bss 179796 179804 8 0.0
.data 5216 5224 8 0.2
.text 1256208 1256600 392 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2272736 2273128 392 0.0
.bss 171836 171844 8 0.0
.data 5568 5576 8 0.1
.text 1235336 1235728 392 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2250392 2250784 392 0.0
.bss 170740 170748 8 0.0
.data 5552 5560 8 0.1
.text 1212992 1213384 392 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2048328 2048392 64 0.0
.bss 156232 156248 16 0.0
.text 1010928 1010992 64 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860175 860575 400 0.0
bss 111148 111156 8 0.0
rodata 96360 96496 136 0.1
text 577052 577300 248 0.0
nrf52840dk_nrf52840+rpc (read/write) 820999 821431 432 0.1
bss 107392 107396 4 0.0
rodata 87136 87272 136 0.2
text 550224 550472 248 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785218 785602 384 0.0
bss 112524 112532 8 0.0
rodata 91604 91740 136 0.1
text 506520 506764 244 0.0
lock-app nrf52840dk_nrf52840 (read/write) 836883 837267 384 0.0
bss 110184 110192 8 0.0
rodata 92716 92852 136 0.1
text 558532 558780 248 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 762178 762562 384 0.1
bss 111596 111600 4 0.0
rodata 88020 88156 136 0.2
text 488092 488336 244 0.0
pump-app nrf52840dk_nrf52840 (read/write) 842863 843247 384 0.0
bss 110320 110328 8 0.0
rodata 94424 94560 136 0.1
text 562588 562836 248 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 836739 837123 384 0.0
bss 110220 110228 8 0.0
rodata 92716 92852 136 0.1
text 558268 558516 248 0.0
shell nrf52840dk_nrf52840 bss 109096 109104 8 0.0
text 519792 519796 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690906 690954 48 0.0
bss 110080 110084 4 0.0
text 440400 440404 4 0.0
p6 lock-app default (read/write) 2166560 2167296 736 0.0
.bss 66184 66200 16 0.0
.data 2416 2424 8 0.3
.text 1124824 1125560 736 0.1
qpg lighting-app qpg6100+debug (read only) 489680 490064 384 0.1
.bss 50320 50328 8 0.0
.data 1000 1008 8 0.8
.text 484360 484744 384 0.1
lock-app qpg6100+debug (read only) 466008 466408 400 0.1
.bss 49272 49280 8 0.0
.data 956 964 8 0.8
.text 460688 461088 400 0.1
persistent-storage-app qpg6100+debug .bss 27752 27760 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 661606 661918 312 0.0
text 457328 457490 162 0.0
Decreases (5 builds for mbed, p6)
platform target config section 12ec702 0fa30d2 change % change
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 851432 851416 -16 -0.0
lighting-app CY8CPROTO_062_4343W+release .heap 859040 859024 -16 -0.0
lock-app CY8CPROTO_062_4343W+release .heap 860152 860136 -16 -0.0
shell CY8CPROTO_062_4343W+release .heap 875248 875232 -16 -0.0
p6 lock-app default .heap 964744 964720 -24 -0.0
Full report (37 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 12ec702 0fa30d2 change % change
efr32 lighting-app BRD4161A (read only) 735400 736152 752 0.1
(read/write) 114444 114460 16 0.0
.bss 112692 112700 8 0.0
.data 1752 1760 8 0.5
.text 735392 736144 752 0.1
BRD4161A+rpc (read only) 722840 723592 752 0.1
(read/write) 131052 131068 16 0.0
.bss 129196 129204 8 0.0
.data 1852 1860 8 0.4
.text 722832 723584 752 0.1
lock-app BRD4161A (read only) 714684 715436 752 0.1
(read/write) 112260 112276 16 0.0
.bss 110548 110556 8 0.0
.data 1712 1720 8 0.5
.text 714676 715428 752 0.1
window-app BRD4161A (read only) 715596 716332 736 0.1
(read/write) 112584 112600 16 0.0
.bss 110868 110876 8 0.0
.data 1716 1724 8 0.5
.text 715588 716324 736 0.1
esp32 all-clusters-app c3devkit (read only) 880170 880182 12 0.0
(read/write) 1307552 1307568 16 0.0
.dram0.bss 58424 58440 16 0.0
.dram0.data 16464 16464 0 0.0
.flash.rodata 199424 199424 0 0.0
.flash.text 880170 880182 12 0.0
.iram0.text 57554 57554 0 0.0
m5stack (read only) 911115 911119 4 0.0
(read/write) 427312 427328 16 0.0
.dram0.bss 60920 60936 16 0.0
.dram0.data 32100 32100 0 0.0
.flash.rodata 208128 208128 0 0.0
.flash.text 911115 911119 4 0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 698232 698640 408 0.1
.bss 77688 77696 8 0.0
.data 1900 1908 8 0.4
.text 612844 613236 392 0.1
lock-app k32w061+debug (read/write) 590524 590940 416 0.1
.bss 68188 68204 16 0.0
.data 1864 1872 8 0.4
.text 514672 515064 392 0.1
shell k32w061+debug (read/write) 424772 424796 24 0.0
.bss 63280 63288 8 0.0
.data 672 672 0 0.0
.text 359116 359132 16 0.0
linux all-clusters-app debug (read only) 1684105 1685601 1496 0.1
(read/write) 118992 119216 224 0.2
.bss 50608 50640 32 0.1
.data 1010 1042 32 3.2
.data.rel.ro 62112 62288 176 0.3
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 137845 137941 96 0.1
.text 1413202 1414242 1040 0.1
bridge-app debug+rpc (read only) 1278533 1280029 1496 0.1
(read/write) 84104 84264 160 0.2
.bss 50768 50768 0 0.0
.data 976 992 16 1.6
.data.rel.ro 27368 27544 176 0.6
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 109604 109700 96 0.1
.text 1073685 1074725 1040 0.1
chip-tool debug (read only) 4312925 4313117 192 0.0
(read/write) 123552 123552 0 0.0
.bss 17680 17680 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 98880 98880 0 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 217488 217488 0 0.0
.text 3829781 3829973 192 0.0
lighting-app debug+rpc (read only) 1537505 1539001 1496 0.1
(read/write) 100976 101200 224 0.2
.bss 40152 40184 32 0.1
.data 1106 1138 32 2.9
.data.rel.ro 54448 54608 160 0.3
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 127761 127857 96 0.1
.text 1277362 1278402 1040 0.1
ota-provider-app debug (read only) 1236425 1236617 192 0.0
(read/write) 67072 67072 0 0.0
.bss 36608 36608 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24616 24616 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110376 110376 0 0.0
.text 1029922 1030114 192 0.0
ota-requestor-app debug (read only) 1293697 1293889 192 0.0
(read/write) 76392 76392 0 0.0
.bss 44864 44864 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25576 25576 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 121600 121600 0 0.0
.text 1074306 1074498 192 0.0
shell debug (read only) 785041 785233 192 0.0
(read/write) 57664 57696 32 0.1
.bss 16072 16104 32 0.2
.data 242 242 0 0.0
.data.rel.ro 36848 36848 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77295 77295 0 0.0
.text 606210 606402 192 0.0
tv-app debug (read only) 1770905 1772401 1496 0.1
(read/write) 288536 288760 224 0.1
.bss 222192 222224 32 0.0
.data 2032 2064 32 1.6
.data.rel.ro 58672 58832 160 0.3
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 153176 153272 96 0.1
.text 1475826 1476866 1040 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2293608 2294000 392 0.0
.bss 179796 179804 8 0.0
.data 5216 5224 8 0.2
.heap 851432 851416 -16 -0.0
.text 1256208 1256600 392 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2272736 2273128 392 0.0
.bss 171836 171844 8 0.0
.data 5568 5576 8 0.1
.heap 859040 859024 -16 -0.0
.text 1235336 1235728 392 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2250392 2250784 392 0.0
.bss 170740 170748 8 0.0
.data 5552 5560 8 0.1
.heap 860152 860136 -16 -0.0
.text 1212992 1213384 392 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048328 2048392 64 0.0
.bss 156232 156248 16 0.0
.data 4968 4968 0 0.0
.heap 875248 875232 -16 -0.0
.text 1010928 1010992 64 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860175 860575 400 0.0
bss 111148 111156 8 0.0
rodata 96360 96496 136 0.1
text 577052 577300 248 0.0
nrf52840dk_nrf52840+rpc (read/write) 820999 821431 432 0.1
bss 107392 107396 4 0.0
rodata 87136 87272 136 0.2
text 550224 550472 248 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785218 785602 384 0.0
bss 112524 112532 8 0.0
rodata 91604 91740 136 0.1
text 506520 506764 244 0.0
lock-app nrf52840dk_nrf52840 (read/write) 836883 837267 384 0.0
bss 110184 110192 8 0.0
rodata 92716 92852 136 0.1
text 558532 558780 248 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 762178 762562 384 0.1
bss 111596 111600 4 0.0
rodata 88020 88156 136 0.2
text 488092 488336 244 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 842863 843247 384 0.0
bss 110320 110328 8 0.0
rodata 94424 94560 136 0.1
text 562588 562836 248 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 836739 837123 384 0.0
bss 110220 110228 8 0.0
rodata 92716 92852 136 0.1
text 558268 558516 248 0.0
shell nrf52840dk_nrf52840 (read/write) 775903 775903 0 0.0
bss 109096 109104 8 0.0
rodata 72404 72404 0 0.0
text 519792 519796 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690906 690954 48 0.0
bss 110080 110084 4 0.0
rodata 67044 67044 0 0.0
text 440400 440404 4 0.0
p6 lock-app default (read/write) 2166560 2167296 736 0.0
.bss 66184 66200 16 0.0
.data 2416 2424 8 0.3
.heap 964744 964720 -24 -0.0
.text 1124824 1125560 736 0.1
qpg lighting-app qpg6100+debug (read only) 489680 490064 384 0.1
(read/write) 114144 114144 0 0.0
.bss 50320 50328 8 0.0
.data 1000 1008 8 0.8
.text 484360 484744 384 0.1
lock-app qpg6100+debug (read only) 466008 466408 400 0.1
(read/write) 114140 114140 0 0.0
.bss 49272 49280 8 0.0
.data 956 964 8 0.8
.text 460688 461088 400 0.1
persistent-storage-app qpg6100+debug (read only) 155820 155820 0 0.0
(read/write) 114140 114140 0 0.0
.bss 27752 27760 8 0.0
.data 372 372 0 0.0
.text 150500 150500 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 661606 661918 312 0.0
bss 68960 68960 0 0.0
noinit 33216 33216 0 0.0
text 457328 457490 162 0.0

@github-actions
Copy link

github-actions bot commented Nov 2, 2021

PR #11302: Size comparison from 05200d6 to c49dc04

Increases above 0.2%:

platform target config section 05200d6c c49dc04 change % change
efr32 lighting-app BRD4161A .data 1752 1760 8 0.5
BRD4161A+rpc .data 1852 1860 8 0.4
lock-app BRD4161A .data 1712 1720 8 0.5
window-app BRD4161A .data 1716 1724 8 0.5
k32w lighting-app k32w061+se05x+release .data 1900 1908 8 0.4
lock-app k32w061+debug .data 1864 1872 8 0.4
linux all-clusters-app debug .data 1010 1042 32 3.2
.data.rel.ro 62080 62256 176 0.3
bridge-app debug+rpc .data 976 992 16 1.6
.data.rel.ro 27336 27512 176 0.6
lighting-app debug+rpc .data 1106 1138 32 2.9
.data.rel.ro 54416 54576 160 0.3
tv-app debug .data 2032 2064 32 1.6
.data.rel.ro 58640 58800 160 0.3
p6 lock-app default .data 2416 2424 8 0.3
qpg lighting-app qpg6100+debug .data 1000 1008 8 0.8
lock-app qpg6100+debug .data 956 964 8 0.8
Increases (35 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 05200d6c c49dc04 change % change
efr32 lighting-app BRD4161A (read only) 735168 735904 736 0.1
(read/write) 114444 114460 16 0.0
.bss 112692 112700 8 0.0
.data 1752 1760 8 0.5
.text 735160 735896 736 0.1
BRD4161A+rpc (read only) 722608 723344 736 0.1
(read/write) 131052 131068 16 0.0
.bss 129196 129204 8 0.0
.data 1852 1860 8 0.4
.text 722600 723336 736 0.1
lock-app BRD4161A (read only) 714436 715188 752 0.1
(read/write) 112260 112276 16 0.0
.bss 110548 110556 8 0.0
.data 1712 1720 8 0.5
.text 714428 715180 752 0.1
window-app BRD4161A (read only) 715348 716084 736 0.1
(read/write) 112584 112600 16 0.0
.bss 110868 110876 8 0.0
.data 1716 1724 8 0.5
.text 715340 716076 736 0.1
esp32 all-clusters-app c3devkit (read only) 880094 880106 12 0.0
(read/write) 1307536 1307552 16 0.0
.dram0.bss 58424 58440 16 0.0
.flash.text 880094 880106 12 0.0
m5stack (read only) 911015 911019 4 0.0
(read/write) 427296 427312 16 0.0
.dram0.bss 60920 60936 16 0.0
.flash.text 911015 911019 4 0.0
k32w lighting-app k32w061+se05x+release (read/write) 698016 698424 408 0.1
.bss 77688 77696 8 0.0
.data 1900 1908 8 0.4
.text 612628 613020 392 0.1
lock-app k32w061+debug (read/write) 590308 590724 416 0.1
.bss 68188 68204 16 0.0
.data 1864 1872 8 0.4
.text 514456 514848 392 0.1
shell k32w061+debug (read/write) 424724 424748 24 0.0
.bss 63280 63288 8 0.0
.text 359068 359084 16 0.0
linux all-clusters-app debug (read only) 1684057 1685553 1496 0.1
(read/write) 118960 119184 224 0.2
.bss 50608 50640 32 0.1
.data 1010 1042 32 3.2
.data.rel.ro 62080 62256 176 0.3
.rodata 137973 138069 96 0.1
.text 1413074 1414114 1040 0.1
bridge-app debug+rpc (read only) 1277525 1279005 1480 0.1
(read/write) 84072 84232 160 0.2
.data 976 992 16 1.6
.data.rel.ro 27336 27512 176 0.6
.rodata 109604 109700 96 0.1
.text 1072725 1073749 1024 0.1
chip-tool debug (read only) 4307925 4308117 192 0.0
.text 3825093 3825285 192 0.0
lighting-app debug+rpc (read only) 1536497 1537977 1480 0.1
(read/write) 100944 101168 224 0.2
.bss 40152 40184 32 0.1
.data 1106 1138 32 2.9
.data.rel.ro 54416 54576 160 0.3
.rodata 127761 127857 96 0.1
.text 1276402 1277426 1024 0.1
ota-provider-app debug (read only) 1238345 1238537 192 0.0
.text 1031666 1031858 192 0.0
ota-requestor-app debug (read only) 1292689 1292897 208 0.0
.text 1073378 1073586 208 0.0
shell debug (read only) 785249 785441 192 0.0
(read/write) 57632 57664 32 0.1
.bss 16072 16104 32 0.2
.text 606466 606658 192 0.0
tv-app debug (read only) 1771369 1772849 1480 0.1
(read/write) 288504 288728 224 0.1
.bss 222192 222224 32 0.0
.data 2032 2064 32 1.6
.data.rel.ro 58640 58800 160 0.3
.rodata 153304 153400 96 0.1
.text 1476210 1477234 1024 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2293608 2294000 392 0.0
.bss 179796 179804 8 0.0
.data 5216 5224 8 0.2
.text 1256208 1256600 392 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2272544 2272936 392 0.0
.bss 171836 171844 8 0.0
.data 5568 5576 8 0.1
.text 1235144 1235536 392 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2250264 2250656 392 0.0
.bss 170740 170748 8 0.0
.data 5552 5560 8 0.1
.text 1212864 1213256 392 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2048328 2048392 64 0.0
.bss 156232 156248 16 0.0
.text 1010928 1010992 64 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860015 860399 384 0.0
bss 111148 111156 8 0.0
rodata 96360 96496 136 0.1
text 576880 577128 248 0.0
nrf52840dk_nrf52840+rpc (read/write) 820823 821255 432 0.1
bss 107392 107396 4 0.0
rodata 87136 87272 136 0.2
text 550052 550300 248 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785042 785426 384 0.0
bss 112524 112532 8 0.0
rodata 91604 91740 136 0.1
text 506348 506592 244 0.0
lock-app nrf52840dk_nrf52840 (read/write) 836707 837091 384 0.0
bss 110184 110192 8 0.0
rodata 92716 92852 136 0.1
text 558360 558608 248 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 762002 762402 400 0.1
bss 111596 111600 4 0.0
rodata 88020 88156 136 0.2
text 487920 488164 244 0.1
pump-app nrf52840dk_nrf52840 (read/write) 842815 843199 384 0.0
bss 110320 110328 8 0.0
rodata 94424 94560 136 0.1
text 562540 562788 248 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 836563 836963 400 0.0
bss 110220 110228 8 0.0
rodata 92716 92852 136 0.1
text 558096 558344 248 0.0
shell nrf52840dk_nrf52840 bss 109096 109104 8 0.0
text 519768 519772 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690874 690922 48 0.0
bss 110080 110084 4 0.0
text 440368 440372 4 0.0
p6 lock-app default (read/write) 2166312 2167048 736 0.0
.bss 66184 66200 16 0.0
.data 2416 2424 8 0.3
.text 1124576 1125312 736 0.1
qpg lighting-app qpg6100+debug (read only) 489464 489848 384 0.1
.bss 50320 50328 8 0.0
.data 1000 1008 8 0.8
.text 484144 484528 384 0.1
lock-app qpg6100+debug (read only) 465792 466192 400 0.1
.bss 49272 49280 8 0.0
.data 956 964 8 0.8
.text 460472 460872 400 0.1
persistent-storage-app qpg6100+debug .bss 27752 27760 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 661422 661726 304 0.0
text 457150 457310 160 0.0
Decreases (5 builds for mbed, p6)
platform target config section 05200d6c c49dc04 change % change
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 851432 851416 -16 -0.0
lighting-app CY8CPROTO_062_4343W+release .heap 859040 859024 -16 -0.0
lock-app CY8CPROTO_062_4343W+release .heap 860152 860136 -16 -0.0
shell CY8CPROTO_062_4343W+release .heap 875248 875232 -16 -0.0
p6 lock-app default .heap 964744 964720 -24 -0.0
Full report (37 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 05200d6c c49dc04 change % change
efr32 lighting-app BRD4161A (read only) 735168 735904 736 0.1
(read/write) 114444 114460 16 0.0
.bss 112692 112700 8 0.0
.data 1752 1760 8 0.5
.text 735160 735896 736 0.1
BRD4161A+rpc (read only) 722608 723344 736 0.1
(read/write) 131052 131068 16 0.0
.bss 129196 129204 8 0.0
.data 1852 1860 8 0.4
.text 722600 723336 736 0.1
lock-app BRD4161A (read only) 714436 715188 752 0.1
(read/write) 112260 112276 16 0.0
.bss 110548 110556 8 0.0
.data 1712 1720 8 0.5
.text 714428 715180 752 0.1
window-app BRD4161A (read only) 715348 716084 736 0.1
(read/write) 112584 112600 16 0.0
.bss 110868 110876 8 0.0
.data 1716 1724 8 0.5
.text 715340 716076 736 0.1
esp32 all-clusters-app c3devkit (read only) 880094 880106 12 0.0
(read/write) 1307536 1307552 16 0.0
.dram0.bss 58424 58440 16 0.0
.dram0.data 16464 16464 0 0.0
.flash.rodata 199408 199408 0 0.0
.flash.text 880094 880106 12 0.0
.iram0.text 57554 57554 0 0.0
m5stack (read only) 911015 911019 4 0.0
(read/write) 427296 427312 16 0.0
.dram0.bss 60920 60936 16 0.0
.dram0.data 32100 32100 0 0.0
.flash.rodata 208112 208112 0 0.0
.flash.text 911015 911019 4 0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 698016 698424 408 0.1
.bss 77688 77696 8 0.0
.data 1900 1908 8 0.4
.text 612628 613020 392 0.1
lock-app k32w061+debug (read/write) 590308 590724 416 0.1
.bss 68188 68204 16 0.0
.data 1864 1872 8 0.4
.text 514456 514848 392 0.1
shell k32w061+debug (read/write) 424724 424748 24 0.0
.bss 63280 63288 8 0.0
.data 672 672 0 0.0
.text 359068 359084 16 0.0
linux all-clusters-app debug (read only) 1684057 1685553 1496 0.1
(read/write) 118960 119184 224 0.2
.bss 50608 50640 32 0.1
.data 1010 1042 32 3.2
.data.rel.ro 62080 62256 176 0.3
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 137973 138069 96 0.1
.text 1413074 1414114 1040 0.1
bridge-app debug+rpc (read only) 1277525 1279005 1480 0.1
(read/write) 84072 84232 160 0.2
.bss 50768 50768 0 0.0
.data 976 992 16 1.6
.data.rel.ro 27336 27512 176 0.6
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 109604 109700 96 0.1
.text 1072725 1073749 1024 0.1
chip-tool debug (read only) 4307925 4308117 192 0.0
(read/write) 123456 123456 0 0.0
.bss 17680 17680 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 98768 98768 0 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 217392 217392 0 0.0
.text 3825093 3825285 192 0.0
lighting-app debug+rpc (read only) 1536497 1537977 1480 0.1
(read/write) 100944 101168 224 0.2
.bss 40152 40184 32 0.1
.data 1106 1138 32 2.9
.data.rel.ro 54416 54576 160 0.3
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 127761 127857 96 0.1
.text 1276402 1277426 1024 0.1
ota-provider-app debug (read only) 1238345 1238537 192 0.0
(read/write) 67040 67040 0 0.0
.bss 36608 36608 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24584 24584 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110600 110600 0 0.0
.text 1031666 1031858 192 0.0
ota-requestor-app debug (read only) 1292689 1292897 208 0.0
(read/write) 76360 76360 0 0.0
.bss 44864 44864 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25544 25544 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 121568 121568 0 0.0
.text 1073378 1073586 208 0.0
shell debug (read only) 785249 785441 192 0.0
(read/write) 57632 57664 32 0.1
.bss 16072 16104 32 0.2
.data 242 242 0 0.0
.data.rel.ro 36816 36816 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77295 77295 0 0.0
.text 606466 606658 192 0.0
tv-app debug (read only) 1771369 1772849 1480 0.1
(read/write) 288504 288728 224 0.1
.bss 222192 222224 32 0.0
.data 2032 2064 32 1.6
.data.rel.ro 58640 58800 160 0.3
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 153304 153400 96 0.1
.text 1476210 1477234 1024 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2293608 2294000 392 0.0
.bss 179796 179804 8 0.0
.data 5216 5224 8 0.2
.heap 851432 851416 -16 -0.0
.text 1256208 1256600 392 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2272544 2272936 392 0.0
.bss 171836 171844 8 0.0
.data 5568 5576 8 0.1
.heap 859040 859024 -16 -0.0
.text 1235144 1235536 392 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2250264 2250656 392 0.0
.bss 170740 170748 8 0.0
.data 5552 5560 8 0.1
.heap 860152 860136 -16 -0.0
.text 1212864 1213256 392 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2048328 2048392 64 0.0
.bss 156232 156248 16 0.0
.data 4968 4968 0 0.0
.heap 875248 875232 -16 -0.0
.text 1010928 1010992 64 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860015 860399 384 0.0
bss 111148 111156 8 0.0
rodata 96360 96496 136 0.1
text 576880 577128 248 0.0
nrf52840dk_nrf52840+rpc (read/write) 820823 821255 432 0.1
bss 107392 107396 4 0.0
rodata 87136 87272 136 0.2
text 550052 550300 248 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785042 785426 384 0.0
bss 112524 112532 8 0.0
rodata 91604 91740 136 0.1
text 506348 506592 244 0.0
lock-app nrf52840dk_nrf52840 (read/write) 836707 837091 384 0.0
bss 110184 110192 8 0.0
rodata 92716 92852 136 0.1
text 558360 558608 248 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 762002 762402 400 0.1
bss 111596 111600 4 0.0
rodata 88020 88156 136 0.2
text 487920 488164 244 0.1
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 842815 843199 384 0.0
bss 110320 110328 8 0.0
rodata 94424 94560 136 0.1
text 562540 562788 248 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 836563 836963 400 0.0
bss 110220 110228 8 0.0
rodata 92716 92852 136 0.1
text 558096 558344 248 0.0
shell nrf52840dk_nrf52840 (read/write) 775867 775867 0 0.0
bss 109096 109104 8 0.0
rodata 72400 72400 0 0.0
text 519768 519772 4 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690874 690922 48 0.0
bss 110080 110084 4 0.0
rodata 67044 67044 0 0.0
text 440368 440372 4 0.0
p6 lock-app default (read/write) 2166312 2167048 736 0.0
.bss 66184 66200 16 0.0
.data 2416 2424 8 0.3
.heap 964744 964720 -24 -0.0
.text 1124576 1125312 736 0.1
qpg lighting-app qpg6100+debug (read only) 489464 489848 384 0.1
(read/write) 114144 114144 0 0.0
.bss 50320 50328 8 0.0
.data 1000 1008 8 0.8
.text 484144 484528 384 0.1
lock-app qpg6100+debug (read only) 465792 466192 400 0.1
(read/write) 114140 114140 0 0.0
.bss 49272 49280 8 0.0
.data 956 964 8 0.8
.text 460472 460872 400 0.1
persistent-storage-app qpg6100+debug (read only) 155796 155796 0 0.0
(read/write) 114140 114140 0 0.0
.bss 27752 27760 8 0.0
.data 372 372 0 0.0
.text 150476 150476 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 661422 661726 304 0.0
bss 68960 68960 0 0.0
noinit 33216 33216 0 0.0
text 457150 457310 160 0.0

@yufengwangca yufengwangca merged commit e24e76c into project-chip:master Nov 2, 2021
@yufengwangca yufengwangca deleted the pr/general/report branch November 2, 2021 16:17
Comment on lines +162 to +166
if (emberAfEndpointIndexIsEnabled(index))
{
EndpointId endpointId = emberAfEndpointFromIndex(index);

if (emberAfContainsServer(endpointId, GeneralDiagnostics::Id))
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a little weird in the sense that we go from index to endpoint id, but the first thing emberAfContainsServer ends up doing is getting the index from the endpoint id, which is all a huge waste of cycles.

We should have a function that takes an endpoint index and cluster id and returns whether that cluster is present on that endpoint....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to get endpointID, it is needed by MatterReportingAttributeChangeCallback

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fine. Getting endpoint id from index is cheap. But getting index from id is expensive, and that's what emberAfContainsServer ends up doing.

Hence my suggestion for a variant of emberAfContainsServer that takes an index instead of an endpoint id....

Comment on lines 113 to +117
case UpTime::Id: {
return ReadIfSupported(&PlatformManager::GetUpTime, aEncoder);
return ReadIfSupported(&DeviceLayer::PlatformManager::GetUpTime, aEncoder);
}
case TotalOperationalHours::Id: {
return ReadIfSupported(&PlatformManager::GetTotalOperationalHours, aEncoder);
return ReadIfSupported(&DeviceLayer::PlatformManager::GetTotalOperationalHours, aEncoder);
Copy link
Contributor

Choose a reason for hiding this comment

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

We never mark UpTime and TotalOperationalHours dirty. Shouldn't we be doing that? Or at least have a followup tracking it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Spec say those two attributes should not be subscribed, and those two attributes should only be read
"A Node interested in the value of the UpTime attribute SHOULD NOT subscribe to value changes but SHOULD perform a single read of the value."

Copy link
Contributor

Choose a reason for hiding this comment

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

Should not doesn't mean you can't do it, just that it's not necessarily a great idea.

If someone does subscribe to them, the spec as currently written requires reports to be sent on changes.

Now I think this is silly and we should change the spec, personally, but that needs an SDK feedback spec issue, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

most of attributes in diagnostic clusters suffer the same problem, since the values of some diagnostic clusters are consistently changing. Subscribe to those attributes will flood the reporting

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't disagree. I am just pointing out that if we think that our impl now follows the spec we are wrong: it does not. If the spec is requiring things that make no sense to implement, we should be filing spec issues, not just silently ignoring what it says and doing something else.

Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on lines +187 to +188
PlatformMgr().SetDelegate(&gDiagnosticDelegate);
ConnectivityMgr().SetDelegate(&gDiagnosticDelegate);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these delegate registrations survive CHIP stack restart? They are not documented as to whether they do or not...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it is registered after each start, why it needs to survive over restart?

Copy link
Contributor

@bzbarsky-apple bzbarsky-apple Nov 3, 2021

Choose a reason for hiding this comment

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

It depends on the definition of "start", right? This function depends on being called once per process execution. It will not work right if it's called more than once as things stand. If the CHIP stack is shut down and restarted (e.g. via PlatformManager::Shutdown and then a new InitChipStack, etc), either this function will get called again, in which case the attribute access interface bit will be broken, or it will not be called again, in which case are these delegates going to be set up right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

MatterGeneralDiagnosticsPluginServerInitCallback should be called only once during the lifetime of per process execution. Do we have the scenario we shut down the CHIP stack and restart the CHIP stack without restarting the process? If there is the case, then "registerAttributeAccessOverride(&gAttrAccess);" will also not get called, we are not registering the handle for these platform attributes.

Copy link
Contributor

Choose a reason for hiding this comment

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

MatterGeneralDiagnosticsPluginServerInitCallback should be called only once during the lifetime of per process execution.

That is the intent, I think... It happens to not be true in practice right now; see #11352

Do we have the scenario we shut down the CHIP stack and restart the CHIP stack without restarting the process?

Yes, absolutely.

If there is the case, then "registerAttributeAccessOverride(&gAttrAccess);" will also not get called,

Yes, but shutting down the stack does not unregister attr access overrides, so this part is fine.

But in general, we need to decide what the call frequency guarantees are around these callbacks and then make sure that everything in them is operating correctly given those frequency guarantees. Right now, if we actually change MatterGeneralDiagnosticsPluginServerInitCallback to be once-per-process-lifetime this code would break.

src/include/platform/ConnectivityManager.h Show resolved Hide resolved
@yufengwangca
Copy link
Contributor Author

Lets move the discussion to #11566

PSONALl pushed a commit to PSONALl/connectedhomeip that referenced this pull request Dec 3, 2021
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.

5 participants