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

Set configuration manager #11534

Merged
merged 10 commits into from
Nov 10, 2021

Conversation

harimau-qirex
Copy link
Contributor

Problem

For applications and tests to use custom ConfigurationManagers (introduced by #10195), a mechanism is needed to set the implementation that the SDK uses. With this an application or test will be able to create and use a custom implementation that overrides as much or as little functionality as is required.

Change overview

  • Adds a ConfigurationManager setter that allows an application or test to set a custom implementation of the interface, and moves the ConfigurationMgr implementation to the interface's header since it will be the same for all platforms.
  • Removes the ConfigurationMgrImpl getter.
  • No longer marks the platform's implementation as final, so an application or test's custom implementation can be based off the platform's implementation and modify only the behaviour it wants to change.
  • Moves the functions related to reboot count, operational hours, and boot reason to the ConfigurationManager interface and sets a default implementation in GenericConfigurationManagerImpl that returns NOT_IMPLEMENTED. The platforms that already implemented these keep their existing implementations.

Testing

Ran the unit tests.

@github-actions
Copy link

github-actions bot commented Nov 8, 2021

PR #11534: Size comparison from a93a7da to 8ba1e46

Increases above 0.2%:

platform target config section a93a7da 8ba1e46 change % change
linux all-clusters-app debug .data.rel.ro 62304 62448 144 0.2
bridge-app debug+rpc (read/write) 69808 69968 160 0.2
.data.rel.ro 27736 27880 144 0.5
lighting-app debug+rpc .data.rel.ro 55136 55280 144 0.3
ota-provider-app debug (read/write) 67976 68136 160 0.2
.data.rel.ro 24536 24680 144 0.6
ota-requestor-app debug .data.rel.ro 25544 25688 144 0.6
shell debug (read/write) 58184 58312 128 0.2
.data.rel.ro 36784 36928 144 0.4
tv-app debug .data.rel.ro 58792 58936 144 0.2
Increases (20 builds for efr32, k32w, linux, p6, qpg, telink)
platform target config section a93a7da 8ba1e46 change % change
efr32 lighting-app BRD4161A (read only) 745848 746000 152 0.0
(read/write) 115740 115748 8 0.0
.bss 113964 113972 8 0.0
.text 745840 745992 152 0.0
BRD4161A+rpc (read only) 733384 733552 168 0.0
.bss 130468 130476 8 0.0
.text 733376 733544 168 0.0
lock-app BRD4161A (read only) 725136 725288 152 0.0
(read/write) 113556 113564 8 0.0
.bss 111820 111828 8 0.0
.text 725128 725280 152 0.0
window-app BRD4161A (read only) 726032 726200 168 0.0
.bss 112140 112148 8 0.0
.text 726024 726192 168 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699560 699852 292 0.0
.bss 77808 77816 8 0.0
.text 614044 614332 288 0.0
lock-app k32w061+debug (read/write) 592364 592656 292 0.0
.bss 68340 68348 8 0.0
.text 516348 516636 288 0.1
shell k32w061+debug (read/write) 657860 658152 292 0.0
.bss 78980 78988 8 0.0
.text 571236 571524 288 0.1
linux all-clusters-app debug (read only) 1704225 1705281 1056 0.1
(read/write) 119232 119360 128 0.1
.data.rel.ro 62304 62448 144 0.2
.text 1431586 1432210 624 0.0
bridge-app debug+rpc (read only) 1292261 1293301 1040 0.1
(read/write) 69808 69968 160 0.2
.data.rel.ro 27736 27880 144 0.5
.text 1085365 1085973 608 0.1
chip-tool debug (read only) 4931485 4932605 1120 0.0
(read/write) 126664 126824 160 0.1
.data.rel.ro 100288 100432 144 0.1
.text 4429077 4429765 688 0.0
lighting-app debug+rpc (read only) 1553257 1554313 1056 0.1
(read/write) 102776 102904 128 0.1
.data.rel.ro 55136 55280 144 0.3
.text 1290050 1290674 624 0.0
ota-provider-app debug (read only) 1251465 1252585 1120 0.1
(read/write) 67976 68136 160 0.2
.data.rel.ro 24536 24680 144 0.6
.text 1043154 1043842 688 0.1
ota-requestor-app debug (read only) 1329761 1330881 1120 0.1
(read/write) 77232 77360 128 0.2
.data.rel.ro 25544 25688 144 0.6
.text 1107522 1108210 688 0.1
shell debug (read only) 788041 789161 1120 0.1
(read/write) 58184 58312 128 0.2
.data.rel.ro 36784 36928 144 0.4
.text 608642 609330 688 0.1
tv-app debug (read only) 1817233 1818273 1040 0.1
(read/write) 290400 290528 128 0.0
.data.rel.ro 58792 58936 144 0.2
.text 1519666 1520274 608 0.0
p6 all-clusters-app default (read/write) 2301136 2301304 168 0.0
.bss 106872 106880 8 0.0
.text 1259400 1259568 168 0.0
lock-app default (read/write) 2213848 2214016 168 0.0
.bss 95680 95688 8 0.0
.text 1172112 1172280 168 0.0
qpg lighting-app qpg6100+debug (read only) 490896 491192 296 0.1
.bss 50968 50976 8 0.0
.text 485576 485872 296 0.1
lock-app qpg6100+debug (read only) 467236 467524 288 0.1
(read/write) 114140 114144 4 0.0
.bss 49912 49920 8 0.0
.text 461916 462204 288 0.1
telink lighting-app tlsr9518adk80d (read/write) 663242 663482 240 0.0
bss 69092 69100 8 0.0
text 458250 458452 202 0.0
Decreases (12 builds for efr32, k32w, p6, qpg)
platform target config section a93a7da 8ba1e46 change % change
efr32 lighting-app BRD4161A .data 1776 1772 -4 -0.2
BRD4161A+rpc .data 1892 1888 -4 -0.2
lock-app BRD4161A .data 1736 1732 -4 -0.2
window-app BRD4161A .data 1740 1736 -4 -0.2
k32w lighting-app k32w061+se05x+release .data 1908 1904 -4 -0.2
lock-app k32w061+debug .data 1876 1872 -4 -0.2
shell k32w061+debug .data 1844 1840 -4 -0.2
p6 all-clusters-app default .data 2528 2520 -8 -0.3
lock-app default .data 2400 2392 -8 -0.3
qpg lighting-app qpg6100+debug (read/write) 114144 114140 -4 -0.0
.data 1008 1004 -4 -0.4
lock-app qpg6100+debug .data 964 960 -4 -0.4
persistent-storage-app qpg6100+debug (read only) 153316 105356 -47960 -31.3
(read/write) 114144 114138 -6 -0.0
.bss 19448 8810 -10638 -54.7
.data 360 268 -92 -25.6
.text 147996 100036 -47960 -32.4
Full report (21 builds for efr32, k32w, linux, p6, qpg, telink)
platform target config section a93a7da 8ba1e46 change % change
efr32 lighting-app BRD4161A (read only) 745848 746000 152 0.0
(read/write) 115740 115748 8 0.0
.bss 113964 113972 8 0.0
.data 1776 1772 -4 -0.2
.text 745840 745992 152 0.0
BRD4161A+rpc (read only) 733384 733552 168 0.0
(read/write) 132364 132364 0 0.0
.bss 130468 130476 8 0.0
.data 1892 1888 -4 -0.2
.text 733376 733544 168 0.0
lock-app BRD4161A (read only) 725136 725288 152 0.0
(read/write) 113556 113564 8 0.0
.bss 111820 111828 8 0.0
.data 1736 1732 -4 -0.2
.text 725128 725280 152 0.0
window-app BRD4161A (read only) 726032 726200 168 0.0
(read/write) 113884 113884 0 0.0
.bss 112140 112148 8 0.0
.data 1740 1736 -4 -0.2
.text 726024 726192 168 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699560 699852 292 0.0
.bss 77808 77816 8 0.0
.data 1908 1904 -4 -0.2
.text 614044 614332 288 0.0
lock-app k32w061+debug (read/write) 592364 592656 292 0.0
.bss 68340 68348 8 0.0
.data 1876 1872 -4 -0.2
.text 516348 516636 288 0.1
shell k32w061+debug (read/write) 657860 658152 292 0.0
.bss 78980 78988 8 0.0
.data 1844 1840 -4 -0.2
.text 571236 571524 288 0.1
linux all-clusters-app debug (read only) 1704225 1705281 1056 0.1
(read/write) 119232 119360 128 0.1
.bss 50608 50608 0 0.0
.data 1042 1042 0 0.0
.data.rel.ro 62304 62448 144 0.2
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 139221 139221 0 0.0
.text 1431586 1432210 624 0.0
bridge-app debug+rpc (read only) 1292261 1293301 1040 0.1
(read/write) 69808 69968 160 0.2
.bss 35536 35536 0 0.0
.data 1568 1568 0 0.0
.data.rel.ro 27736 27880 144 0.5
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 111028 111028 0 0.0
.text 1085365 1085973 608 0.1
chip-tool debug (read only) 4931485 4932605 1120 0.0
(read/write) 126664 126824 160 0.1
.bss 18736 18736 0 0.0
.data 2224 2224 0 0.0
.data.rel.ro 100288 100432 144 0.1
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 432 432 0 0.0
.rodata 233488 233488 0 0.0
.text 4429077 4429765 688 0.0
lighting-app debug+rpc (read only) 1553257 1554313 1056 0.1
(read/write) 102776 102904 128 0.1
.bss 41176 41176 0 0.0
.data 1170 1170 0 0.0
.data.rel.ro 55136 55280 144 0.3
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 129649 129649 0 0.0
.text 1290050 1290674 624 0.0
ota-provider-app debug (read only) 1251465 1252585 1120 0.1
(read/write) 67976 68136 160 0.2
.bss 37600 37600 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24536 24680 144 0.6
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 112232 112232 0 0.0
.text 1043154 1043842 688 0.1
ota-requestor-app debug (read only) 1329761 1330881 1120 0.1
(read/write) 77232 77360 128 0.2
.bss 45728 45728 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25544 25688 144 0.6
.dynamic 592 592 0 0.0
.got 3992 3992 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 124208 124208 0 0.0
.text 1107522 1108210 688 0.1
shell debug (read only) 788041 789161 1120 0.1
(read/write) 58184 58312 128 0.2
.bss 16648 16648 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36784 36928 144 0.4
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 77935 77935 0 0.0
.text 608642 609330 688 0.1
tv-app debug (read only) 1817233 1818273 1040 0.1
(read/write) 290400 290528 128 0.0
.bss 223248 223248 0 0.0
.data 2704 2704 0 0.0
.data.rel.ro 58792 58936 144 0.2
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155304 155304 0 0.0
.text 1519666 1520274 608 0.0
p6 all-clusters-app default (read/write) 2301136 2301304 168 0.0
.bss 106872 106880 8 0.0
.data 2528 2520 -8 -0.3
.heap 923944 923944 0 0.0
.text 1259400 1259568 168 0.0
lock-app default (read/write) 2213848 2214016 168 0.0
.bss 95680 95688 8 0.0
.data 2400 2392 -8 -0.3
.heap 935264 935264 0 0.0
.text 1172112 1172280 168 0.0
qpg lighting-app qpg6100+debug (read only) 490896 491192 296 0.1
(read/write) 114144 114140 -4 -0.0
.bss 50968 50976 8 0.0
.data 1008 1004 -4 -0.4
.text 485576 485872 296 0.1
lock-app qpg6100+debug (read only) 467236 467524 288 0.1
(read/write) 114140 114144 4 0.0
.bss 49912 49920 8 0.0
.data 964 960 -4 -0.4
.text 461916 462204 288 0.1
persistent-storage-app qpg6100+debug (read only) 153316 105356 -47960 -31.3
(read/write) 114144 114138 -6 -0.0
.bss 19448 8810 -10638 -54.7
.data 360 268 -92 -25.6
.text 147996 100036 -47960 -32.4
telink lighting-app tlsr9518adk80d (read/write) 663242 663482 240 0.0
bss 69092 69100 8 0.0
noinit 33216 33216 0 0.0
text 458250 458452 202 0.0

@github-actions
Copy link

github-actions bot commented Nov 8, 2021

PR #11534: Size comparison from a93a7da to 9570c77

Increases above 0.2%:

platform target config section a93a7da 9570c77 change % change
efr32 lighting-app BRD4161A (read/write) 115740 116084 344 0.3
.bss 113964 114300 336 0.3
BRD4161A+rpc (read/write) 132364 132700 336 0.3
.bss 130468 130804 336 0.3
lock-app BRD4161A (read/write) 113556 113900 344 0.3
.bss 111820 112156 336 0.3
window-app BRD4161A (read/write) 113884 114220 336 0.3
.bss 112140 112476 336 0.3
esp32 all-clusters-app c3devkit .dram0.bss 57608 58248 640 1.1
m5stack .dram0.bss 60112 60760 648 1.1
linux all-clusters-app debug (read/write) 119232 125856 6624 5.6
.bss 50608 57200 6592 13.0
bridge-app debug+rpc (read/write) 69808 76432 6624 9.5
.bss 35536 42096 6560 18.5
chip-tool debug (read/write) 126664 133320 6656 5.3
.bss 18736 25328 6592 35.2
lighting-app debug+rpc (read/write) 102776 109400 6624 6.4
.bss 41176 47768 6592 16.0
ota-provider-app debug (read/write) 67976 74632 6656 9.8
.bss 37600 44192 6592 17.5
ota-requestor-app debug (read/write) 77232 83856 6624 8.6
.bss 45728 52320 6592 14.4
shell debug (read/write) 58184 64776 6592 11.3
.bss 16648 23240 6592 39.6
tv-app debug (read/write) 290400 297024 6624 2.3
.bss 223248 229840 6592 3.0
p6 all-clusters-app default .bss 106872 111784 4912 4.6
lock-app default .bss 95680 100592 4912 5.1
Increases (35 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section a93a7da 9570c77 change % change
efr32 lighting-app BRD4161A (read/write) 115740 116084 344 0.3
.bss 113964 114300 336 0.3
.data 1776 1780 4 0.2
BRD4161A+rpc (read/write) 132364 132700 336 0.3
.bss 130468 130804 336 0.3
.data 1892 1896 4 0.2
lock-app BRD4161A (read/write) 113556 113900 344 0.3
.bss 111820 112156 336 0.3
.data 1736 1740 4 0.2
window-app BRD4161A (read/write) 113884 114220 336 0.3
.bss 112140 112476 336 0.3
.data 1740 1744 4 0.2
esp32 all-clusters-app c3devkit (read/write) 1306040 1306384 344 0.0
.dram0.bss 57608 58248 640 1.1
m5stack (read/write) 423336 423704 368 0.1
.dram0.bss 60112 60760 648 1.1
k32w lighting-app k32w061+se05x+release .bss 77808 77824 16 0.0
lock-app k32w061+debug .bss 68340 68356 16 0.0
shell k32w061+debug .bss 78980 78996 16 0.0
linux all-clusters-app debug (read only) 1704225 1704545 320 0.0
(read/write) 119232 125856 6624 5.6
.bss 50608 57200 6592 13.0
.data.rel.ro 62304 62352 48 0.1
.text 1431586 1431618 32 0.0
bridge-app debug+rpc (read only) 1292261 1292581 320 0.0
(read/write) 69808 76432 6624 9.5
.bss 35536 42096 6560 18.5
.data.rel.ro 27736 27784 48 0.2
.text 1085365 1085397 32 0.0
chip-tool debug (read/write) 126664 133320 6656 5.3
.bss 18736 25328 6592 35.2
.data.rel.ro 100288 100336 48 0.0
lighting-app debug+rpc (read only) 1553257 1553577 320 0.0
(read/write) 102776 109400 6624 6.4
.bss 41176 47768 6592 16.0
.data.rel.ro 55136 55184 48 0.1
.text 1290050 1290082 32 0.0
ota-provider-app debug (read only) 1251465 1251865 400 0.0
(read/write) 67976 74632 6656 9.8
.bss 37600 44192 6592 17.5
.data.rel.ro 24536 24584 48 0.2
.text 1043154 1043266 112 0.0
ota-requestor-app debug (read only) 1329761 1330161 400 0.0
(read/write) 77232 83856 6624 8.6
.bss 45728 52320 6592 14.4
.data.rel.ro 25544 25592 48 0.2
.text 1107522 1107634 112 0.0
shell debug (read only) 788041 788233 192 0.0
(read/write) 58184 64776 6592 11.3
.bss 16648 23240 6592 39.6
.data.rel.ro 36784 36800 16 0.0
tv-app debug (read only) 1817233 1817553 320 0.0
(read/write) 290400 297024 6624 2.3
.bss 223248 229840 6592 3.0
.data.rel.ro 58792 58840 48 0.1
.text 1519666 1519698 32 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2291640 2291824 184 0.0
.bss 178924 179252 328 0.2
.data 5224 5232 8 0.2
.text 1254240 1254424 184 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2271800 2271984 184 0.0
.bss 171980 172308 328 0.2
.text 1234400 1234584 184 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2249456 2249640 184 0.0
.bss 170876 171204 328 0.2
.data 5560 5568 8 0.1
.text 1212056 1212240 184 0.0
shell CY8CPROTO_062_4343W+release .bss 156256 156272 16 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861635 861779 144 0.0
bss 111280 111292 12 0.0
rodata 96932 96980 48 0.0
text 577804 577900 96 0.0
nrf52840dk_nrf52840+rpc (read/write) 823983 824159 176 0.0
bss 107632 107644 12 0.0
rodata 88112 88160 48 0.1
text 551952 552076 124 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786678 786838 160 0.0
bss 112652 112664 12 0.0
rodata 92192 92240 48 0.1
text 507264 507368 104 0.0
lock-app nrf52840dk_nrf52840 (read/write) 838359 838503 144 0.0
bss 110312 110324 12 0.0
rodata 93304 93352 48 0.1
text 559284 559380 96 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763654 763798 144 0.0
bss 111724 111736 12 0.0
rodata 88608 88656 48 0.1
text 488836 488940 104 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844451 844595 144 0.0
bss 110452 110464 12 0.0
rodata 95012 95060 48 0.1
text 563448 563544 96 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 838215 838359 144 0.0
bss 110348 110360 12 0.0
rodata 93304 93352 48 0.1
text 559020 559116 96 0.0
shell nrf52840dk_nrf52840 (read/write) 776231 776295 64 0.0
bss 109100 109112 12 0.0
rodata 72540 72588 48 0.1
text 519988 520000 12 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691270 691334 64 0.0
bss 110084 110096 12 0.0
rodata 67184 67232 48 0.1
text 440584 440608 24 0.0
p6 all-clusters-app default .bss 106872 111784 4912 4.6
lock-app default .bss 95680 100592 4912 5.1
qpg lighting-app qpg6100+debug .bss 50968 50984 16 0.0
lock-app qpg6100+debug .bss 49912 49928 16 0.0
telink lighting-app tlsr9518adk80d (read/write) 663242 663322 80 0.0
bss 69092 69104 12 0.0
text 458250 458288 38 0.0
Decreases (20 builds for efr32, esp32, k32w, linux, mbed, p6, qpg)
platform target config section a93a7da 9570c77 change % change
efr32 lighting-app BRD4161A (read only) 745848 742152 -3696 -0.5
.text 745840 742144 -3696 -0.5
BRD4161A+rpc (read only) 733384 729696 -3688 -0.5
.text 733376 729688 -3688 -0.5
lock-app BRD4161A (read only) 725136 721432 -3704 -0.5
.text 725128 721424 -3704 -0.5
window-app BRD4161A (read only) 726032 722344 -3688 -0.5
.text 726024 722336 -3688 -0.5
esp32 all-clusters-app c3devkit (read only) 882786 880310 -2476 -0.3
.flash.rodata 198712 198416 -296 -0.1
.flash.text 882786 880310 -2476 -0.3
.iram0.text 57624 57526 -98 -0.2
m5stack (read only) 913639 911643 -1996 -0.2
.flash.rodata 204952 204672 -280 -0.1
.flash.text 913639 911643 -1996 -0.2
k32w lighting-app k32w061+se05x+release (read/write) 699560 699132 -428 -0.1
.text 614044 613600 -444 -0.1
lock-app k32w061+debug (read/write) 592364 591956 -408 -0.1
.text 516348 515924 -424 -0.1
shell k32w061+debug (read/write) 657860 657452 -408 -0.1
.text 571236 570812 -424 -0.1
linux chip-tool debug (read only) 4931485 4920445 -11040 -0.2
.text 4429077 4417749 -11328 -0.3
shell debug .rodata 77935 77903 -32 -0.0
.text 608642 608626 -16 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 852296 851960 -336 -0.0
lighting-app CY8CPROTO_062_4343W+release .heap 858888 858560 -328 -0.0
lock-app CY8CPROTO_062_4343W+release .heap 860008 859672 -336 -0.0
shell CY8CPROTO_062_4343W+release (read/write) 2048912 2048872 -40 -0.0
.heap 875224 875208 -16 -0.0
.text 1011512 1011472 -40 -0.0
p6 all-clusters-app default (read/write) 2301136 2298720 -2416 -0.1
.heap 923944 919032 -4912 -0.5
.text 1259400 1256984 -2416 -0.2
lock-app default (read/write) 2213848 2211424 -2424 -0.1
.heap 935264 930352 -4912 -0.5
.text 1172112 1169688 -2424 -0.2
qpg lighting-app qpg6100+debug (read only) 490896 490452 -444 -0.1
.text 485576 485132 -444 -0.1
lock-app qpg6100+debug (read only) 467236 466784 -452 -0.1
.text 461916 461464 -452 -0.1
persistent-storage-app qpg6100+debug (read only) 153316 105404 -47912 -31.3
(read/write) 114144 114142 -2 -0.0
.bss 19448 8962 -10486 -53.9
.data 360 272 -88 -24.4
.text 147996 100084 -47912 -32.4
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section a93a7da 9570c77 change % change
efr32 lighting-app BRD4161A (read only) 745848 742152 -3696 -0.5
(read/write) 115740 116084 344 0.3
.bss 113964 114300 336 0.3
.data 1776 1780 4 0.2
.text 745840 742144 -3696 -0.5
BRD4161A+rpc (read only) 733384 729696 -3688 -0.5
(read/write) 132364 132700 336 0.3
.bss 130468 130804 336 0.3
.data 1892 1896 4 0.2
.text 733376 729688 -3688 -0.5
lock-app BRD4161A (read only) 725136 721432 -3704 -0.5
(read/write) 113556 113900 344 0.3
.bss 111820 112156 336 0.3
.data 1736 1740 4 0.2
.text 725128 721424 -3704 -0.5
window-app BRD4161A (read only) 726032 722344 -3688 -0.5
(read/write) 113884 114220 336 0.3
.bss 112140 112476 336 0.3
.data 1740 1744 4 0.2
.text 726024 722336 -3688 -0.5
esp32 all-clusters-app c3devkit (read only) 882786 880310 -2476 -0.3
(read/write) 1306040 1306384 344 0.0
.dram0.bss 57608 58248 640 1.1
.dram0.data 16472 16472 0 0.0
.flash.rodata 198712 198416 -296 -0.1
.flash.text 882786 880310 -2476 -0.3
.iram0.text 57624 57526 -98 -0.2
m5stack (read only) 913639 911643 -1996 -0.2
(read/write) 423336 423704 368 0.1
.dram0.bss 60112 60760 648 1.1
.dram0.data 32108 32108 0 0.0
.flash.rodata 204952 204672 -280 -0.1
.flash.text 913639 911643 -1996 -0.2
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699560 699132 -428 -0.1
.bss 77808 77824 16 0.0
.data 1908 1908 0 0.0
.text 614044 613600 -444 -0.1
lock-app k32w061+debug (read/write) 592364 591956 -408 -0.1
.bss 68340 68356 16 0.0
.data 1876 1876 0 0.0
.text 516348 515924 -424 -0.1
shell k32w061+debug (read/write) 657860 657452 -408 -0.1
.bss 78980 78996 16 0.0
.data 1844 1844 0 0.0
.text 571236 570812 -424 -0.1
linux all-clusters-app debug (read only) 1704225 1704545 320 0.0
(read/write) 119232 125856 6624 5.6
.bss 50608 57200 6592 13.0
.data 1042 1042 0 0.0
.data.rel.ro 62304 62352 48 0.1
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 139221 139221 0 0.0
.text 1431586 1431618 32 0.0
bridge-app debug+rpc (read only) 1292261 1292581 320 0.0
(read/write) 69808 76432 6624 9.5
.bss 35536 42096 6560 18.5
.data 1568 1568 0 0.0
.data.rel.ro 27736 27784 48 0.2
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 111028 111028 0 0.0
.text 1085365 1085397 32 0.0
chip-tool debug (read only) 4931485 4920445 -11040 -0.2
(read/write) 126664 133320 6656 5.3
.bss 18736 25328 6592 35.2
.data 2224 2224 0 0.0
.data.rel.ro 100288 100336 48 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 432 432 0 0.0
.rodata 233488 233488 0 0.0
.text 4429077 4417749 -11328 -0.3
lighting-app debug+rpc (read only) 1553257 1553577 320 0.0
(read/write) 102776 109400 6624 6.4
.bss 41176 47768 6592 16.0
.data 1170 1170 0 0.0
.data.rel.ro 55136 55184 48 0.1
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 129649 129649 0 0.0
.text 1290050 1290082 32 0.0
ota-provider-app debug (read only) 1251465 1251865 400 0.0
(read/write) 67976 74632 6656 9.8
.bss 37600 44192 6592 17.5
.data 752 752 0 0.0
.data.rel.ro 24536 24584 48 0.2
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 112232 112232 0 0.0
.text 1043154 1043266 112 0.0
ota-requestor-app debug (read only) 1329761 1330161 400 0.0
(read/write) 77232 83856 6624 8.6
.bss 45728 52320 6592 14.4
.data 816 816 0 0.0
.data.rel.ro 25544 25592 48 0.2
.dynamic 592 592 0 0.0
.got 3992 3992 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 124208 124208 0 0.0
.text 1107522 1107634 112 0.0
shell debug (read only) 788041 788233 192 0.0
(read/write) 58184 64776 6592 11.3
.bss 16648 23240 6592 39.6
.data 242 242 0 0.0
.data.rel.ro 36784 36800 16 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 77935 77903 -32 -0.0
.text 608642 608626 -16 -0.0
tv-app debug (read only) 1817233 1817553 320 0.0
(read/write) 290400 297024 6624 2.3
.bss 223248 229840 6592 3.0
.data 2704 2704 0 0.0
.data.rel.ro 58792 58840 48 0.1
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155304 155304 0 0.0
.text 1519666 1519698 32 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291640 2291824 184 0.0
.bss 178924 179252 328 0.2
.data 5224 5232 8 0.2
.heap 852296 851960 -336 -0.0
.text 1254240 1254424 184 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2271800 2271984 184 0.0
.bss 171980 172308 328 0.2
.data 5576 5576 0 0.0
.heap 858888 858560 -328 -0.0
.text 1234400 1234584 184 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2249456 2249640 184 0.0
.bss 170876 171204 328 0.2
.data 5560 5568 8 0.1
.heap 860008 859672 -336 -0.0
.text 1212056 1212240 184 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) 2048912 2048872 -40 -0.0
.bss 156256 156272 16 0.0
.data 4968 4968 0 0.0
.heap 875224 875208 -16 -0.0
.text 1011512 1011472 -40 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861635 861779 144 0.0
bss 111280 111292 12 0.0
rodata 96932 96980 48 0.0
text 577804 577900 96 0.0
nrf52840dk_nrf52840+rpc (read/write) 823983 824159 176 0.0
bss 107632 107644 12 0.0
rodata 88112 88160 48 0.1
text 551952 552076 124 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786678 786838 160 0.0
bss 112652 112664 12 0.0
rodata 92192 92240 48 0.1
text 507264 507368 104 0.0
lock-app nrf52840dk_nrf52840 (read/write) 838359 838503 144 0.0
bss 110312 110324 12 0.0
rodata 93304 93352 48 0.1
text 559284 559380 96 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763654 763798 144 0.0
bss 111724 111736 12 0.0
rodata 88608 88656 48 0.1
text 488836 488940 104 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) 844451 844595 144 0.0
bss 110452 110464 12 0.0
rodata 95012 95060 48 0.1
text 563448 563544 96 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 838215 838359 144 0.0
bss 110348 110360 12 0.0
rodata 93304 93352 48 0.1
text 559020 559116 96 0.0
shell nrf52840dk_nrf52840 (read/write) 776231 776295 64 0.0
bss 109100 109112 12 0.0
rodata 72540 72588 48 0.1
text 519988 520000 12 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691270 691334 64 0.0
bss 110084 110096 12 0.0
rodata 67184 67232 48 0.1
text 440584 440608 24 0.0
p6 all-clusters-app default (read/write) 2301136 2298720 -2416 -0.1
.bss 106872 111784 4912 4.6
.data 2528 2528 0 0.0
.heap 923944 919032 -4912 -0.5
.text 1259400 1256984 -2416 -0.2
lock-app default (read/write) 2213848 2211424 -2424 -0.1
.bss 95680 100592 4912 5.1
.data 2400 2400 0 0.0
.heap 935264 930352 -4912 -0.5
.text 1172112 1169688 -2424 -0.2
qpg lighting-app qpg6100+debug (read only) 490896 490452 -444 -0.1
(read/write) 114144 114144 0 0.0
.bss 50968 50984 16 0.0
.data 1008 1008 0 0.0
.text 485576 485132 -444 -0.1
lock-app qpg6100+debug (read only) 467236 466784 -452 -0.1
(read/write) 114140 114140 0 0.0
.bss 49912 49928 16 0.0
.data 964 964 0 0.0
.text 461916 461464 -452 -0.1
persistent-storage-app qpg6100+debug (read only) 153316 105404 -47912 -31.3
(read/write) 114144 114142 -2 -0.0
.bss 19448 8962 -10486 -53.9
.data 360 272 -88 -24.4
.text 147996 100084 -47912 -32.4
telink lighting-app tlsr9518adk80d (read/write) 663242 663322 80 0.0
bss 69092 69104 12 0.0
noinit 33216 33216 0 0.0
text 458250 458288 38 0.0

src/platform/Ameba/ConfigurationManagerImpl.cpp Outdated Show resolved Hide resolved
src/platform/Ameba/ConfigurationManagerImpl.cpp Outdated Show resolved Hide resolved
src/platform/Ameba/ConfigurationManagerImpl.cpp Outdated Show resolved Hide resolved
src/platform/EFR32/ConfigurationManagerImpl.cpp Outdated Show resolved Hide resolved
harimau-qirex and others added 9 commits November 9, 2021 15:42
Also remove the implementation getter.
Promote the reboot count, boot reason, and operational hours methods
to the ConfigurationManager interface.
* Add VerifyOrDie to the ConfigurationMgr getter.
* Pass a pointer rather than a reference to ConfigurationMgr.
* Explicitly default the instance pointer to nullptr.
* Move the singleton implementation out of each platform into a shared file.
@github-actions
Copy link

github-actions bot commented Nov 9, 2021

PR #11534: Size comparison from 89898f8 to 23d3b8f

Increases above 0.2%:

platform target config section 89898f8 23d3b8f change % change
linux bridge-app debug+rpc .data.rel.ro 27760 27904 144 0.5
lighting-app debug+rpc .data.rel.ro 55168 55312 144 0.3
ota-provider-app debug .data.rel.ro 24616 24760 144 0.6
ota-requestor-app debug .data.rel.ro 25880 26024 144 0.6
shell debug .data.rel.ro 36816 36960 144 0.4
Increases (36 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 89898f8 23d3b8f change % change
efr32 lighting-app BRD4161A (read only) 742904 743072 168 0.0
(read/write) 116268 116276 8 0.0
.bss 114484 114492 8 0.0
.text 742896 743064 168 0.0
BRD4161A+rpc (read only) 730440 730624 184 0.0
.bss 130988 130996 8 0.0
.text 730432 730616 184 0.0
lock-app BRD4161A (read only) 722192 722344 152 0.0
(read/write) 114084 114092 8 0.0
.bss 112340 112348 8 0.0
.text 722184 722336 152 0.0
window-app BRD4161A (read only) 723088 723272 184 0.0
.bss 112660 112668 8 0.0
.text 723080 723264 184 0.0
esp32 all-clusters-app c3devkit (read only) 880694 880918 224 0.0
(read/write) 1306536 1306592 56 0.0
.dram0.bss 58464 58472 8 0.0
.flash.rodata 198360 198400 40 0.0
.flash.text 880694 880918 224 0.0
m5stack (read only) 911867 912227 360 0.0
(read/write) 423864 423920 56 0.0
.dram0.bss 60968 60984 16 0.0
.flash.rodata 204624 204664 40 0.0
.flash.text 911867 912227 360 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699648 699960 312 0.0
.bss 77996 78004 8 0.0
.text 613940 614248 308 0.1
lock-app k32w061+debug (read/write) 592360 592680 320 0.1
.bss 68524 68540 16 0.0
.text 516156 516464 308 0.1
shell k32w061+debug (read/write) 658016 658324 308 0.0
.bss 79324 79332 8 0.0
.text 571044 571348 304 0.1
linux all-clusters-app debug (read only) 1710601 1711881 1280 0.1
(read/write) 126528 126720 192 0.2
.bss 57872 57904 32 0.1
.data.rel.ro 62352 62496 144 0.2
.rodata 139765 139925 160 0.1
.text 1437346 1438034 688 0.0
bridge-app debug+rpc (read only) 1298253 1299565 1312 0.1
(read/write) 77072 77232 160 0.2
.bss 42768 42800 32 0.1
.data.rel.ro 27760 27904 144 0.5
.rodata 111540 111732 192 0.2
.text 1090821 1091509 688 0.1
chip-tool debug (read only) 4995029 4996365 1336 0.0
(read/write) 134760 134912 152 0.1
.bss 25840 25864 24 0.1
.data.rel.ro 101232 101376 144 0.1
.rodata 242064 242218 154 0.1
.text 4481717 4482469 752 0.0
lighting-app debug+rpc (read only) 1557945 1559241 1296 0.1
(read/write) 110088 110248 160 0.1
.bss 48432 48464 32 0.1
.data.rel.ro 55168 55312 144 0.3
.rodata 128977 129169 192 0.1
.text 1295410 1296082 672 0.1
ota-provider-app debug (read only) 1259721 1261105 1384 0.1
(read/write) 75336 75496 160 0.2
.bss 44864 44896 32 0.1
.data.rel.ro 24616 24760 144 0.6
.rodata 113216 113415 199 0.2
.text 1050258 1051010 752 0.1
ota-requestor-app debug (read only) 1344281 1345665 1384 0.1
(read/write) 79104 79296 192 0.2
.bss 47328 47360 32 0.1
.data.rel.ro 25880 26024 144 0.6
.rodata 124232 124432 200 0.2
.text 1121250 1122002 752 0.1
shell debug (read only) 789065 790441 1376 0.2
(read/write) 65480 65640 160 0.2
.bss 23912 23944 32 0.1
.data.rel.ro 36816 36960 144 0.4
.rodata 78191 78383 192 0.2
.text 609362 610114 752 0.1
tv-app debug (read only) 1842281 1843537 1256 0.1
(read/write) 407936 408120 184 0.0
.bss 340112 340136 24 0.0
.data.rel.ro 59448 59592 144 0.2
.rodata 156456 156589 133 0.1
.text 1541906 1542594 688 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2290856 2291160 304 0.0
.bss 179436 179444 8 0.0
.text 1253456 1253760 304 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2270952 2271256 304 0.0
.bss 172492 172500 8 0.0
.text 1233552 1233856 304 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2248672 2248976 304 0.0
.bss 171388 171396 8 0.0
.text 1211272 1211576 304 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2048864 2049016 152 0.0
.bss 156456 156464 8 0.0
.text 1011464 1011616 152 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 862155 862475 320 0.0
bss 111460 111468 8 0.0
rodata 96924 96972 48 0.0
text 578128 578408 280 0.0
nrf52840dk_nrf52840+rpc (read/write) 824503 824839 336 0.0
bss 107812 107820 8 0.0
rodata 88104 88152 48 0.1
text 552276 552580 304 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 787162 787514 352 0.0
bss 112832 112840 8 0.0
rodata 92180 92228 48 0.1
text 507600 507876 276 0.1
lock-app nrf52840dk_nrf52840 (read/write) 838831 839183 352 0.0
bss 110492 110500 8 0.0
rodata 93296 93344 48 0.1
text 559612 559888 276 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 764142 764494 352 0.0
bss 111904 111912 8 0.0
rodata 88600 88648 48 0.1
text 489176 489448 272 0.1
pump-app nrf52840dk_nrf52840 (read/write) 844955 845275 320 0.0
bss 110632 110640 8 0.0
rodata 95004 95052 48 0.1
text 563772 564052 280 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 838699 839051 352 0.0
bss 110528 110536 8 0.0
rodata 93292 93340 48 0.1
text 559348 559624 276 0.0
shell nrf52840dk_nrf52840 (read/write) 776431 776671 240 0.0
bss 109280 109288 8 0.0
rodata 72564 72612 48 0.1
text 520004 520172 168 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691482 691690 208 0.0
bss 110264 110272 8 0.0
rodata 67204 67252 48 0.1
text 440612 440780 168 0.0
p6 all-clusters-app default (read/write) 2299528 2299712 184 0.0
.heap 918360 918368 8 0.0
.text 1257792 1257976 184 0.0
lock-app default (read/write) 2212184 2212352 168 0.0
.heap 929680 929688 8 0.0
.text 1170448 1170616 168 0.0
qpg lighting-app qpg6100+debug (read only) 490776 491064 288 0.1
(read/write) 114140 114144 4 0.0
.bss 51152 51160 8 0.0
.text 485456 485744 288 0.1
lock-app qpg6100+debug (read only) 466988 467292 304 0.1
.bss 50096 50104 8 0.0
.text 461668 461972 304 0.1
persistent-storage-app qpg6100+debug (read/write) 114140 114142 2 0.0
telink lighting-app tlsr9518adk80d (read/write) 663750 664006 256 0.0
bss 69272 69280 8 0.0
text 458596 458802 206 0.0
Decreases (16 builds for efr32, k32w, mbed, p6, qpg)
platform target config section 89898f8 23d3b8f change % change
efr32 lighting-app BRD4161A .data 1784 1780 -4 -0.2
BRD4161A+rpc .data 1900 1896 -4 -0.2
lock-app BRD4161A .data 1744 1740 -4 -0.2
window-app BRD4161A .data 1748 1744 -4 -0.2
k32w lighting-app k32w061+se05x+release .data 1912 1908 -4 -0.2
lock-app k32w061+debug .data 1880 1876 -4 -0.2
shell k32w061+debug .data 1848 1844 -4 -0.2
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 851776 851768 -8 -0.0
lighting-app CY8CPROTO_062_4343W+release .data 5584 5576 -8 -0.1
lock-app CY8CPROTO_062_4343W+release .heap 859488 859480 -8 -0.0
shell CY8CPROTO_062_4343W+release .data 4976 4968 -8 -0.2
p6 all-clusters-app default .data 2536 2528 -8 -0.3
lock-app default .data 2408 2400 -8 -0.3
qpg lighting-app qpg6100+debug .data 1012 1008 -4 -0.4
lock-app qpg6100+debug (read/write) 114144 114140 -4 -0.0
.data 968 964 -4 -0.4
persistent-storage-app qpg6100+debug (read only) 153400 105408 -47992 -31.3
.bss 19616 8978 -10638 -54.2
.data 364 272 -92 -25.3
.text 148080 100088 -47992 -32.4
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 89898f8 23d3b8f change % change
efr32 lighting-app BRD4161A (read only) 742904 743072 168 0.0
(read/write) 116268 116276 8 0.0
.bss 114484 114492 8 0.0
.data 1784 1780 -4 -0.2
.text 742896 743064 168 0.0
BRD4161A+rpc (read only) 730440 730624 184 0.0
(read/write) 132892 132892 0 0.0
.bss 130988 130996 8 0.0
.data 1900 1896 -4 -0.2
.text 730432 730616 184 0.0
lock-app BRD4161A (read only) 722192 722344 152 0.0
(read/write) 114084 114092 8 0.0
.bss 112340 112348 8 0.0
.data 1744 1740 -4 -0.2
.text 722184 722336 152 0.0
window-app BRD4161A (read only) 723088 723272 184 0.0
(read/write) 114412 114412 0 0.0
.bss 112660 112668 8 0.0
.data 1748 1744 -4 -0.2
.text 723080 723264 184 0.0
esp32 all-clusters-app c3devkit (read only) 880694 880918 224 0.0
(read/write) 1306536 1306592 56 0.0
.dram0.bss 58464 58472 8 0.0
.dram0.data 16472 16472 0 0.0
.flash.rodata 198360 198400 40 0.0
.flash.text 880694 880918 224 0.0
.iram0.text 57526 57526 0 0.0
m5stack (read only) 911867 912227 360 0.0
(read/write) 423864 423920 56 0.0
.dram0.bss 60968 60984 16 0.0
.dram0.data 32108 32108 0 0.0
.flash.rodata 204624 204664 40 0.0
.flash.text 911867 912227 360 0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699648 699960 312 0.0
.bss 77996 78004 8 0.0
.data 1912 1908 -4 -0.2
.text 613940 614248 308 0.1
lock-app k32w061+debug (read/write) 592360 592680 320 0.1
.bss 68524 68540 16 0.0
.data 1880 1876 -4 -0.2
.text 516156 516464 308 0.1
shell k32w061+debug (read/write) 658016 658324 308 0.0
.bss 79324 79332 8 0.0
.data 1848 1844 -4 -0.2
.text 571044 571348 304 0.1
linux all-clusters-app debug (read only) 1710601 1711881 1280 0.1
(read/write) 126528 126720 192 0.2
.bss 57872 57904 32 0.1
.data 1042 1042 0 0.0
.data.rel.ro 62352 62496 144 0.2
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 139765 139925 160 0.1
.text 1437346 1438034 688 0.0
bridge-app debug+rpc (read only) 1298253 1299565 1312 0.1
(read/write) 77072 77232 160 0.2
.bss 42768 42800 32 0.1
.data 1568 1568 0 0.0
.data.rel.ro 27760 27904 144 0.5
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 111540 111732 192 0.2
.text 1090821 1091509 688 0.1
chip-tool debug (read only) 4995029 4996365 1336 0.0
(read/write) 134760 134912 152 0.1
.bss 25840 25864 24 0.1
.data 2256 2256 0 0.0
.data.rel.ro 101232 101376 144 0.1
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 432 432 0 0.0
.rodata 242064 242218 154 0.1
.text 4481717 4482469 752 0.0
lighting-app debug+rpc (read only) 1557945 1559241 1296 0.1
(read/write) 110088 110248 160 0.1
.bss 48432 48464 32 0.1
.data 1202 1202 0 0.0
.data.rel.ro 55168 55312 144 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 128977 129169 192 0.1
.text 1295410 1296082 672 0.1
ota-provider-app debug (read only) 1259721 1261105 1384 0.1
(read/write) 75336 75496 160 0.2
.bss 44864 44896 32 0.1
.data 752 752 0 0.0
.data.rel.ro 24616 24760 144 0.6
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 113216 113415 199 0.2
.text 1050258 1051010 752 0.1
ota-requestor-app debug (read only) 1344281 1345665 1384 0.1
(read/write) 79104 79296 192 0.2
.bss 47328 47360 32 0.1
.data 816 816 0 0.0
.data.rel.ro 25880 26024 144 0.6
.dynamic 592 592 0 0.0
.got 3992 3992 0 0.0
.init 27 27 0 0.0
.init_array 472 472 0 0.0
.rodata 124232 124432 200 0.2
.text 1121250 1122002 752 0.1
shell debug (read only) 789065 790441 1376 0.2
(read/write) 65480 65640 160 0.2
.bss 23912 23944 32 0.1
.data 242 242 0 0.0
.data.rel.ro 36816 36960 144 0.4
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 78191 78383 192 0.2
.text 609362 610114 752 0.1
tv-app debug (read only) 1842281 1843537 1256 0.1
(read/write) 407936 408120 184 0.0
.bss 340112 340136 24 0.0
.data 2736 2736 0 0.0
.data.rel.ro 59448 59592 144 0.2
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 156456 156589 133 0.1
.text 1541906 1542594 688 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2290856 2291160 304 0.0
.bss 179436 179444 8 0.0
.data 5232 5232 0 0.0
.heap 851776 851768 -8 -0.0
.text 1253456 1253760 304 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2270952 2271256 304 0.0
.bss 172492 172500 8 0.0
.data 5584 5576 -8 -0.1
.heap 858368 858368 0 0.0
.text 1233552 1233856 304 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2248672 2248976 304 0.0
.bss 171388 171396 8 0.0
.data 5568 5568 0 0.0
.heap 859488 859480 -8 -0.0
.text 1211272 1211576 304 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) 2048864 2049016 152 0.0
.bss 156456 156464 8 0.0
.data 4976 4968 -8 -0.2
.heap 875016 875016 0 0.0
.text 1011464 1011616 152 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 862155 862475 320 0.0
bss 111460 111468 8 0.0
rodata 96924 96972 48 0.0
text 578128 578408 280 0.0
nrf52840dk_nrf52840+rpc (read/write) 824503 824839 336 0.0
bss 107812 107820 8 0.0
rodata 88104 88152 48 0.1
text 552276 552580 304 0.1
nrf5340dk_nrf5340_cpuapp (read/write) 787162 787514 352 0.0
bss 112832 112840 8 0.0
rodata 92180 92228 48 0.1
text 507600 507876 276 0.1
lock-app nrf52840dk_nrf52840 (read/write) 838831 839183 352 0.0
bss 110492 110500 8 0.0
rodata 93296 93344 48 0.1
text 559612 559888 276 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 764142 764494 352 0.0
bss 111904 111912 8 0.0
rodata 88600 88648 48 0.1
text 489176 489448 272 0.1
pigweed-app nrf52840dk_nrf52840 (read/write) 497327 497327 0 0.0
bss 51824 51824 0 0.0
rodata 45780 45780 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 844955 845275 320 0.0
bss 110632 110640 8 0.0
rodata 95004 95052 48 0.1
text 563772 564052 280 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 838699 839051 352 0.0
bss 110528 110536 8 0.0
rodata 93292 93340 48 0.1
text 559348 559624 276 0.0
shell nrf52840dk_nrf52840 (read/write) 776431 776671 240 0.0
bss 109280 109288 8 0.0
rodata 72564 72612 48 0.1
text 520004 520172 168 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691482 691690 208 0.0
bss 110264 110272 8 0.0
rodata 67204 67252 48 0.1
text 440612 440780 168 0.0
p6 all-clusters-app default (read/write) 2299528 2299712 184 0.0
.bss 112448 112448 0 0.0
.data 2536 2528 -8 -0.3
.heap 918360 918368 8 0.0
.text 1257792 1257976 184 0.0
lock-app default (read/write) 2212184 2212352 168 0.0
.bss 101256 101256 0 0.0
.data 2408 2400 -8 -0.3
.heap 929680 929688 8 0.0
.text 1170448 1170616 168 0.0
qpg lighting-app qpg6100+debug (read only) 490776 491064 288 0.1
(read/write) 114140 114144 4 0.0
.bss 51152 51160 8 0.0
.data 1012 1008 -4 -0.4
.text 485456 485744 288 0.1
lock-app qpg6100+debug (read only) 466988 467292 304 0.1
(read/write) 114144 114140 -4 -0.0
.bss 50096 50104 8 0.0
.data 968 964 -4 -0.4
.text 461668 461972 304 0.1
persistent-storage-app qpg6100+debug (read only) 153400 105408 -47992 -31.3
(read/write) 114140 114142 2 0.0
.bss 19616 8978 -10638 -54.2
.data 364 272 -92 -25.3
.text 148080 100088 -47992 -32.4
telink lighting-app tlsr9518adk80d (read/write) 663750 664006 256 0.0
bss 69272 69280 8 0.0
noinit 33216 33216 0 0.0
text 458596 458802 206 0.0

@andy31415
Copy link
Contributor

fast track: PR up for several days, has 2 approvals already.

@andy31415 andy31415 merged commit a27a311 into project-chip:master Nov 10, 2021
@harimau-qirex harimau-qirex deleted the set-configuration-manager branch November 10, 2021 15:57
PSONALl pushed a commit to PSONALl/connectedhomeip that referenced this pull request Dec 3, 2021
* Add the setter for the ConfigurationManager.

Also remove the implementation getter.

* Remove uses of ConfigurationMgrImpl.

Promote the reboot count, boot reason, and operational hours methods
to the ConfigurationManager interface.

* Add a static instance getter to the ConfigurationManagerImpl.

* Set the default ConfigurationManager instance in the platform manager.

* Update the tests to set a ConfigurationManager instance.

* Allow subclasses of the platform ConfigurationManagerImpls.

* Re-fix Ameba's ConfigurationManagerImpl.

* Restyled by clang-format

* Improvements from pull request comments.

* Add VerifyOrDie to the ConfigurationMgr getter.
* Pass a pointer rather than a reference to ConfigurationMgr.
* Explicitly default the instance pointer to nullptr.
* Move the singleton implementation out of each platform into a shared file.

* Update Ameba platform to remove the new uses of ConfigurationMgrImpl.

Co-authored-by: Restyled.io <commits@restyled.io>
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