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 heap allocation to lib/support/Pool.h #11698

Merged
merged 6 commits into from
Nov 19, 2021

Conversation

kpschoedel
Copy link
Contributor

Problem

We have too many pool allocators.

Previous PRs (#11428, #11487) transitionally use BitMapObjectPool
where previously System::ObjectPool had been used, but this lost
the ability to configure heap allocation.

Change overview

Co-authored-by: Zang MingJie [email protected]
Co-authored-by: C Freeman [email protected]

A future PR will use this for Inet pools (complementing #11428);
that is not done here because it would conflict with other Inet
changes under way.

Testing

Added heap versions of unit tests in TestPool. (A future PR will add a
System::Object-style statistics option and re-unify most of these tests.)

CI should show .bss decreases corresponding to increases in #11487.

- Factor out common code.
- Use a heap-allocated list to track heap-allocated objects.
- More unit tests.
@github-actions
Copy link

github-actions bot commented Nov 15, 2021

PR #11698: Size comparison from b974630 to ca2f2ed

Increases (36 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b974630 ca2f2ed change % change
efr32 lighting-app BRD4161A (read only) 749456 749544 88 0.0
(read/write) 115940 115980 40 0.0
.bss 114140 114180 40 0.0
.text 749448 749536 88 0.0
BRD4161A+rpc (read only) 737012 737100 88 0.0
(read/write) 132568 132608 40 0.0
.bss 130644 130684 40 0.0
.text 737004 737092 88 0.0
lock-app BRD4161A (read only) 726520 726608 88 0.0
(read/write) 113724 113764 40 0.0
.bss 111964 112004 40 0.0
.text 726512 726600 88 0.0
window-app BRD4161A (read only) 727512 727584 72 0.0
(read/write) 114044 114084 40 0.0
.bss 112284 112324 40 0.0
.text 727504 727576 72 0.0
esp32 all-clusters-app c3devkit (read only) 828266 828544 278 0.0
(read/write) 1221922 1221978 56 0.0
.dram0.bss 57096 57136 40 0.1
.flash.rodata 165480 165504 24 0.0
.flash.text 828266 828544 278 0.0
m5stack (read only) 898639 899003 364 0.0
(read/write) 420704 420772 68 0.0
.dram0.bss 62184 62224 40 0.1
.flash.rodata 193140 193168 28 0.0
.flash.text 893255 893619 364 0.0
k32w lighting-app k32w061+se05x+release (read/write) 701988 702300 312 0.0
.bss 77508 77548 40 0.1
.text 616772 617044 272 0.0
lock-app k32w061+debug (read/write) 593400 593704 304 0.1
.bss 68028 68060 32 0.0
.text 517696 517968 272 0.1
shell k32w061+debug (read/write) 659072 659400 328 0.0
.bss 78820 78876 56 0.1
.text 572608 572880 272 0.0
linux all-clusters-app debug (read only) 1717657 1719289 1632 0.1
.text 1447762 1449394 1632 0.1
bridge-app debug+rpc (read only) 1312597 1314229 1632 0.1
.text 1103829 1105461 1632 0.1
chip-tool debug (read only) 4921333 4923205 1872 0.0
.rodata 268178 268210 32 0.0
.text 4343125 4344965 1840 0.0
lighting-app debug+rpc (read only) 1581633 1583265 1632 0.1
.text 1317666 1319298 1632 0.1
ota-provider-app debug (read only) 1267641 1269289 1648 0.1
.text 1057026 1058674 1648 0.2
ota-requestor-app debug (read only) 1352257 1353921 1664 0.1
.rodata 124176 124208 32 0.0
.text 1128322 1129954 1632 0.1
shell debug (read only) 793417 794905 1488 0.2
.rodata 77903 77935 32 0.0
.text 612434 613890 1456 0.2
tv-app debug (read only) 1856769 1858641 1872 0.1
.rodata 155949 155981 32 0.0
.text 1555954 1557794 1840 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2288384 2288640 256 0.0
.bss 179692 179732 40 0.0
.text 1250984 1251240 256 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2274240 2274560 320 0.0
.bss 172556 172596 40 0.0
.text 1236840 1237160 320 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2250080 2250400 320 0.0
.bss 171436 171476 40 0.0
.text 1212680 1213000 320 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2049136 2049392 256 0.0
.bss 155912 155952 40 0.0
.text 1011736 1011992 256 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 864611 864915 304 0.0
bss 110964 111000 36 0.0
text 581596 581856 260 0.0
nrf52840dk_nrf52840+rpc (read/write) 827003 827291 288 0.0
bss 107320 107356 36 0.0
text 555768 556028 260 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 789670 789958 288 0.0
bss 112340 112376 36 0.0
text 511064 511324 260 0.1
lock-app nrf52840dk_nrf52840 (read/write) 840059 840347 288 0.0
bss 109988 110024 36 0.0
text 561700 561964 264 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 765354 765658 304 0.0
bss 111400 111436 36 0.0
text 491260 491524 264 0.1
pump-app nrf52840dk_nrf52840 (read/write) 846167 846455 288 0.0
bss 110128 110164 36 0.0
text 565880 566144 264 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 839759 840047 288 0.0
bss 110024 110060 36 0.0
text 561320 561584 264 0.0
shell nrf52840dk_nrf52840 (read/write) 775643 775899 256 0.0
bss 108744 108780 36 0.0
text 520104 520332 228 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690666 690954 288 0.0
bss 109728 109764 36 0.0
text 440712 440940 228 0.1
p6 all-clusters-app default (read/write) 2297136 2297592 456 0.0
.bss 112680 112720 40 0.0
.text 1255400 1255856 456 0.0
lock-app default (read/write) 2214464 2214920 456 0.0
.bss 101296 101336 40 0.0
.text 1172728 1173184 456 0.0
qpg lighting-app qpg6100+debug (read only) 493664 493936 272 0.1
.bss 50640 50680 40 0.1
.text 488344 488616 272 0.1
lock-app qpg6100+debug (read only) 468596 468868 272 0.1
.bss 49576 49616 40 0.1
.text 463276 463548 272 0.1
persistent-storage-app qpg6100+debug (read only) 105408 105648 240 0.2
.bss 8978 8994 16 0.2
.text 100088 100328 240 0.2
telink lighting-app tlsr9518adk80d (read/write) 667290 667666 376 0.1
bss 69320 69356 36 0.1
text 462450 462796 346 0.1
Decreases (14 builds for linux, mbed, p6)
platform target config section b974630 ca2f2ed change % change
linux all-clusters-app debug (read/write) 126944 126304 -640 -0.5
.bss 57776 57136 -640 -1.1
bridge-app debug+rpc (read/write) 77552 76912 -640 -0.8
.bss 42896 42256 -640 -1.5
chip-tool debug (read/write) 167336 166696 -640 -0.4
.bss 41192 40552 -640 -1.6
lighting-app debug+rpc (read/write) 110320 109680 -640 -0.6
.bss 48080 47440 -640 -1.3
ota-provider-app debug (read/write) 75304 74664 -640 -0.8
.bss 44512 43872 -640 -1.4
ota-requestor-app debug (read/write) 79072 78432 -640 -0.8
.bss 46976 46336 -640 -1.4
shell debug (read/write) 65512 64872 -640 -1.0
.bss 23400 22760 -640 -2.7
tv-app debug (read/write) 407512 406936 -576 -0.1
.bss 339240 338664 -576 -0.2
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 851536 851496 -40 -0.0
lighting-app CY8CPROTO_062_4343W+release .heap 858312 858272 -40 -0.0
lock-app CY8CPROTO_062_4343W+release .heap 859440 859400 -40 -0.0
shell CY8CPROTO_062_4343W+release .heap 875568 875528 -40 -0.0
p6 all-clusters-app default .heap 918144 918104 -40 -0.0
lock-app default .heap 929648 929608 -40 -0.0
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b974630 ca2f2ed change % change
efr32 lighting-app BRD4161A (read only) 749456 749544 88 0.0
(read/write) 115940 115980 40 0.0
.bss 114140 114180 40 0.0
.data 1800 1800 0 0.0
.text 749448 749536 88 0.0
BRD4161A+rpc (read only) 737012 737100 88 0.0
(read/write) 132568 132608 40 0.0
.bss 130644 130684 40 0.0
.data 1924 1924 0 0.0
.text 737004 737092 88 0.0
lock-app BRD4161A (read only) 726520 726608 88 0.0
(read/write) 113724 113764 40 0.0
.bss 111964 112004 40 0.0
.data 1756 1756 0 0.0
.text 726512 726600 88 0.0
window-app BRD4161A (read only) 727512 727584 72 0.0
(read/write) 114044 114084 40 0.0
.bss 112284 112324 40 0.0
.data 1760 1760 0 0.0
.text 727504 727576 72 0.0
esp32 all-clusters-app c3devkit (read only) 828266 828544 278 0.0
(read/write) 1221922 1221978 56 0.0
.dram0.bss 57096 57136 40 0.1
.dram0.data 14092 14092 0 0.0
.flash.rodata 165480 165504 24 0.0
.flash.text 828266 828544 278 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 898639 899003 364 0.0
(read/write) 420704 420772 68 0.0
.dram0.bss 62184 62224 40 0.1
.dram0.data 34056 34056 0 0.0
.flash.rodata 193140 193168 28 0.0
.flash.text 893255 893619 364 0.0
.iram0.text 122987 122987 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 701988 702300 312 0.0
.bss 77508 77548 40 0.1
.data 1908 1908 0 0.0
.text 616772 617044 272 0.0
lock-app k32w061+debug (read/write) 593400 593704 304 0.1
.bss 68028 68060 32 0.0
.data 1876 1876 0 0.0
.text 517696 517968 272 0.1
shell k32w061+debug (read/write) 659072 659400 328 0.0
.bss 78820 78876 56 0.1
.data 1844 1844 0 0.0
.text 572608 572880 272 0.0
linux all-clusters-app debug (read only) 1717657 1719289 1632 0.1
(read/write) 126944 126304 -640 -0.5
.bss 57776 57136 -640 -1.1
.data 1042 1042 0 0.0
.data.rel.ro 62848 62848 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 136181 136181 0 0.0
.text 1447762 1449394 1632 0.1
bridge-app debug+rpc (read only) 1312597 1314229 1632 0.1
(read/write) 77552 76912 -640 -0.8
.bss 42896 42256 -640 -1.5
.data 1568 1568 0 0.0
.data.rel.ro 28088 28088 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 111604 111604 0 0.0
.text 1103829 1105461 1632 0.1
chip-tool debug (read only) 4921333 4923205 1872 0.0
(read/write) 167336 166696 -640 -0.4
.bss 41192 40552 -640 -1.6
.data 2272 2272 0 0.0
.data.rel.ro 118384 118384 0 0.0
.dynamic 592 592 0 0.0
.got 4416 4416 0 0.0
.init 27 27 0 0.0
.init_array 472 472 0 0.0
.rodata 268178 268210 32 0.0
.text 4343125 4344965 1840 0.0
lighting-app debug+rpc (read only) 1581633 1583265 1632 0.1
(read/write) 110320 109680 -640 -0.6
.bss 48080 47440 -640 -1.3
.data 1234 1234 0 0.0
.data.rel.ro 55680 55680 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 129201 129201 0 0.0
.text 1317666 1319298 1632 0.1
ota-provider-app debug (read only) 1267641 1269289 1648 0.1
(read/write) 75304 74664 -640 -0.8
.bss 44512 43872 -640 -1.4
.data 784 784 0 0.0
.data.rel.ro 24904 24904 0 0.0
.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 113383 113383 0 0.0
.text 1057026 1058674 1648 0.2
ota-requestor-app debug (read only) 1352257 1353921 1664 0.1
(read/write) 79072 78432 -640 -0.8
.bss 46976 46336 -640 -1.4
.data 848 848 0 0.0
.data.rel.ro 26168 26168 0 0.0
.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 124176 124208 32 0.0
.text 1128322 1129954 1632 0.1
shell debug (read only) 793417 794905 1488 0.2
(read/write) 65512 64872 -640 -1.0
.bss 23400 22760 -640 -2.7
.data 242 242 0 0.0
.data.rel.ro 37360 37360 0 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 77903 77935 32 0.0
.text 612434 613890 1456 0.2
tv-app debug (read only) 1856769 1858641 1872 0.1
(read/write) 407512 406936 -576 -0.1
.bss 339240 338664 -576 -0.2
.data 2768 2768 0 0.0
.data.rel.ro 59824 59824 0 0.0
.dynamic 592 592 0 0.0
.got 4432 4432 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155949 155981 32 0.0
.text 1555954 1557794 1840 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2288384 2288640 256 0.0
.bss 179692 179732 40 0.0
.data 5216 5216 0 0.0
.heap 851536 851496 -40 -0.0
.text 1250984 1251240 256 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2274240 2274560 320 0.0
.bss 172556 172596 40 0.0
.data 5576 5576 0 0.0
.heap 858312 858272 -40 -0.0
.text 1236840 1237160 320 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2250080 2250400 320 0.0
.bss 171436 171476 40 0.0
.data 5568 5568 0 0.0
.heap 859440 859400 -40 -0.0
.text 1212680 1213000 320 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) 2049136 2049392 256 0.0
.bss 155912 155952 40 0.0
.data 4968 4968 0 0.0
.heap 875568 875528 -40 -0.0
.text 1011736 1011992 256 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 864611 864915 304 0.0
bss 110964 111000 36 0.0
rodata 96436 96436 0 0.0
text 581596 581856 260 0.0
nrf52840dk_nrf52840+rpc (read/write) 827003 827291 288 0.0
bss 107320 107356 36 0.0
rodata 87628 87628 0 0.0
text 555768 556028 260 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 789670 789958 288 0.0
bss 112340 112376 36 0.0
rodata 91696 91696 0 0.0
text 511064 511324 260 0.1
lock-app nrf52840dk_nrf52840 (read/write) 840059 840347 288 0.0
bss 109988 110024 36 0.0
rodata 92908 92908 0 0.0
text 561700 561964 264 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 765354 765658 304 0.0
bss 111400 111436 36 0.0
rodata 88212 88212 0 0.0
text 491260 491524 264 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) 846167 846455 288 0.0
bss 110128 110164 36 0.0
rodata 94616 94616 0 0.0
text 565880 566144 264 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 839759 840047 288 0.0
bss 110024 110060 36 0.0
rodata 92864 92864 0 0.0
text 561320 561584 264 0.0
shell nrf52840dk_nrf52840 (read/write) 775643 775899 256 0.0
bss 108744 108780 36 0.0
rodata 72192 72192 0 0.0
text 520104 520332 228 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 690666 690954 288 0.0
bss 109728 109764 36 0.0
rodata 66836 66836 0 0.0
text 440712 440940 228 0.1
p6 all-clusters-app default (read/write) 2297136 2297592 456 0.0
.bss 112680 112720 40 0.0
.data 2520 2520 0 0.0
.heap 918144 918104 -40 -0.0
.text 1255400 1255856 456 0.0
lock-app default (read/write) 2214464 2214920 456 0.0
.bss 101296 101336 40 0.0
.data 2400 2400 0 0.0
.heap 929648 929608 -40 -0.0
.text 1172728 1173184 456 0.0
qpg lighting-app qpg6100+debug (read only) 493664 493936 272 0.1
(read/write) 114144 114144 0 0.0
.bss 50640 50680 40 0.1
.data 1008 1008 0 0.0
.text 488344 488616 272 0.1
lock-app qpg6100+debug (read only) 468596 468868 272 0.1
(read/write) 114140 114140 0 0.0
.bss 49576 49616 40 0.1
.data 964 964 0 0.0
.text 463276 463548 272 0.1
persistent-storage-app qpg6100+debug (read only) 105408 105648 240 0.2
(read/write) 114142 114142 0 0.0
.bss 8978 8994 16 0.2
.data 272 272 0 0.0
.text 100088 100328 240 0.2
telink lighting-app tlsr9518adk80d (read/write) 667290 667666 376 0.1
bss 69320 69356 36 0.1
noinit 33216 33216 0 0.0
text 462450 462796 346 0.1

src/lib/support/Pool.h Outdated Show resolved Hide resolved
@github-actions
Copy link

PR #11698: Size comparison from 09f9837 to 0c9ab88

Increases above 0.2%:

platform target config section 09f9837 0c9ab88 change % change
linux shell debug .text 612674 614146 1472 0.2
qpg persistent-storage-app qpg6100+debug (read only) 105408 105648 240 0.2
.text 100088 100328 240 0.2
Increases (36 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 09f9837 0c9ab88 change % change
efr32 lighting-app BRD4161A (read only) 745208 745664 456 0.1
(read/write) 115364 115404 40 0.0
.bss 113564 113604 40 0.0
.text 745200 745656 456 0.1
lock-app BRD4161A (read only) 722296 722736 440 0.1
(read/write) 113148 113188 40 0.0
.bss 111388 111428 40 0.0
.text 722288 722728 440 0.1
window-app BRD4161A (read only) 723272 723712 440 0.1
(read/write) 113468 113508 40 0.0
.bss 111708 111748 40 0.0
.text 723264 723704 440 0.1
lighting-app BRD4161A+rpc (read only) 732724 733180 456 0.1
(read/write) 131992 132032 40 0.0
.bss 130068 130108 40 0.0
.text 732716 733172 456 0.1
esp32 all-clusters-app c3devkit (read only) 824912 825204 292 0.0
(read/write) 1219650 1219722 72 0.0
.dram0.bss 56512 56552 40 0.1
.flash.rodata 163800 163824 24 0.0
.flash.text 824912 825204 292 0.0
m5stack (read only) 895819 896211 392 0.0
(read/write) 418980 419056 76 0.0
.dram0.bss 61864 61904 40 0.1
.flash.rodata 191780 191816 36 0.0
.flash.text 890435 890827 392 0.0
k32w lock-app k32w061+debug (read/write) 595020 595324 304 0.1
.bss 67500 67532 32 0.0
.text 519840 520112 272 0.1
shell k32w061+debug (read/write) 660252 660580 328 0.0
.bss 78564 78620 56 0.1
.text 574040 574312 272 0.0
lighting-app k32w061+se05x+release (read/write) 703576 703888 312 0.0
.bss 76988 77028 40 0.1
.text 618876 619148 272 0.0
linux all-clusters-app debug (read only) 1701841 1703505 1664 0.1
.rodata 135253 135285 32 0.0
.text 1433138 1434770 1632 0.1
chip-tool debug (read only) 4892293 4894165 1872 0.0
.rodata 265554 265586 32 0.0
.text 4317765 4319605 1840 0.0
ota-provider-app debug (read only) 1252473 1254105 1632 0.1
.text 1042386 1044018 1632 0.2
ota-requestor-app debug (read only) 1335393 1337025 1632 0.1
.text 1112178 1113810 1632 0.1
shell debug (read only) 794665 796169 1504 0.2
.rodata 78479 78511 32 0.0
.text 612674 614146 1472 0.2
tv-app debug (read only) 1838569 1840441 1872 0.1
.rodata 155149 155181 32 0.0
.text 1539154 1540994 1840 0.1
bridge-app debug+rpc (read only) 1297013 1298645 1632 0.1
.text 1089445 1091077 1632 0.1
lighting-app debug+rpc (read only) 1566073 1567737 1664 0.1
.rodata 128273 128305 32 0.0
.text 1303298 1304930 1632 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2283728 2284048 320 0.0
.bss 179108 179148 40 0.0
.text 1246328 1246648 320 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2269720 2270040 320 0.0
.bss 171972 172012 40 0.0
.text 1232320 1232640 320 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2245560 2245880 320 0.0
.bss 170860 170900 40 0.0
.text 1208160 1208480 320 0.0
shell CY8CPROTO_062_4343W+release (read/write) 2049520 2049840 320 0.0
.bss 156160 156200 40 0.0
.text 1012120 1012440 320 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860183 860455 272 0.0
bss 110384 110420 36 0.0
text 579140 579376 236 0.0
lock-app nrf52840dk_nrf52840 (read/write) 835579 835883 304 0.0
bss 109408 109444 36 0.0
text 559236 559476 240 0.0
pump-app nrf52840dk_nrf52840 (read/write) 841723 841995 272 0.0
bss 109548 109584 36 0.0
text 563420 563660 240 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 835315 835587 272 0.0
bss 109444 109480 36 0.0
text 558856 559096 240 0.0
shell nrf52840dk_nrf52840 (read/write) 776239 776511 272 0.0
bss 109004 109040 36 0.0
text 520124 520352 228 0.0
lighting-app nrf52840dk_nrf52840+rpc (read/write) 822551 822823 272 0.0
bss 106740 106776 36 0.0
text 553312 553548 236 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785222 785494 272 0.0
bss 111760 111796 36 0.0
text 508608 508844 236 0.0
lock-app nrf5340dk_nrf5340_cpuapp (read/write) 760902 761174 272 0.0
bss 110820 110856 36 0.0
text 488796 489036 240 0.0
shell nrf5340dk_nrf5340_cpuapp (read/write) 691294 691550 256 0.0
bss 109988 110024 36 0.0
text 440732 440960 228 0.1
p6 all-clusters-app default (read/write) 2292608 2293144 536 0.0
.bss 112096 112136 40 0.0
.text 1250872 1251408 536 0.0
lock-app default (read/write) 2210080 2210616 536 0.0
.bss 100720 100760 40 0.0
.text 1168344 1168880 536 0.0
qpg lighting-app qpg6100+debug (read only) 489736 489992 256 0.1
.bss 50056 50096 40 0.1
.text 484416 484672 256 0.1
lock-app qpg6100+debug (read only) 464692 464948 256 0.1
.bss 49000 49040 40 0.1
.text 459372 459628 256 0.1
persistent-storage-app qpg6100+debug (read only) 105408 105648 240 0.2
.bss 8978 8994 16 0.2
.text 100088 100328 240 0.2
telink lighting-app tlsr9518adk80d (read/write) 763014 763406 392 0.1
bss 78896 78932 36 0.0
text 529210 529556 346 0.1
Decreases (14 builds for linux, mbed, p6)
platform target config section 09f9837 0c9ab88 change % change
linux all-clusters-app debug (read/write) 126624 125984 -640 -0.5
.bss 57520 56880 -640 -1.1
chip-tool debug (read/write) 166280 165640 -640 -0.4
.bss 40584 39944 -640 -1.6
ota-provider-app debug (read/write) 75560 74920 -640 -0.8
.bss 44832 44192 -640 -1.4
ota-requestor-app debug (read/write) 79264 78624 -640 -0.8
.bss 47296 46656 -640 -1.4
shell debug (read/write) 66088 65448 -640 -1.0
.bss 23816 23176 -640 -2.7
tv-app debug (read/write) 405016 404408 -608 -0.2
.bss 336968 336360 -608 -0.2
bridge-app debug+rpc (read/write) 76816 76176 -640 -0.8
.bss 42224 41584 -640 -1.5
lighting-app debug+rpc (read/write) 110064 109424 -640 -0.6
.bss 47888 47248 -640 -1.3
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 852120 852080 -40 -0.0
lighting-app CY8CPROTO_062_4343W+release .heap 858896 858856 -40 -0.0
lock-app CY8CPROTO_062_4343W+release .heap 860016 859976 -40 -0.0
shell CY8CPROTO_062_4343W+release .heap 875320 875280 -40 -0.0
p6 all-clusters-app default .heap 918728 918688 -40 -0.0
lock-app default .heap 930224 930184 -40 -0.0
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 09f9837 0c9ab88 change % change
efr32 lighting-app BRD4161A (read only) 745208 745664 456 0.1
(read/write) 115364 115404 40 0.0
.bss 113564 113604 40 0.0
.data 1800 1800 0 0.0
.text 745200 745656 456 0.1
lock-app BRD4161A (read only) 722296 722736 440 0.1
(read/write) 113148 113188 40 0.0
.bss 111388 111428 40 0.0
.data 1756 1756 0 0.0
.text 722288 722728 440 0.1
window-app BRD4161A (read only) 723272 723712 440 0.1
(read/write) 113468 113508 40 0.0
.bss 111708 111748 40 0.0
.data 1760 1760 0 0.0
.text 723264 723704 440 0.1
lighting-app BRD4161A+rpc (read only) 732724 733180 456 0.1
(read/write) 131992 132032 40 0.0
.bss 130068 130108 40 0.0
.data 1924 1924 0 0.0
.text 732716 733172 456 0.1
esp32 all-clusters-app c3devkit (read only) 824912 825204 292 0.0
(read/write) 1219650 1219722 72 0.0
.dram0.bss 56512 56552 40 0.1
.dram0.data 14084 14084 0 0.0
.flash.rodata 163800 163824 24 0.0
.flash.text 824912 825204 292 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 895819 896211 392 0.0
(read/write) 418980 419056 76 0.0
.dram0.bss 61864 61904 40 0.1
.dram0.data 34056 34056 0 0.0
.flash.rodata 191780 191816 36 0.0
.flash.text 890435 890827 392 0.0
.iram0.text 122943 122943 0 0.0
k32w lock-app k32w061+debug (read/write) 595020 595324 304 0.1
.bss 67500 67532 32 0.0
.data 1880 1880 0 0.0
.text 519840 520112 272 0.1
shell k32w061+debug (read/write) 660252 660580 328 0.0
.bss 78564 78620 56 0.1
.data 1848 1848 0 0.0
.text 574040 574312 272 0.0
lighting-app k32w061+se05x+release (read/write) 703576 703888 312 0.0
.bss 76988 77028 40 0.1
.data 1912 1912 0 0.0
.text 618876 619148 272 0.0
linux all-clusters-app debug (read only) 1701841 1703505 1664 0.1
(read/write) 126624 125984 -640 -0.5
.bss 57520 56880 -640 -1.1
.data 1042 1042 0 0.0
.data.rel.ro 62784 62784 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 135253 135285 32 0.0
.text 1433138 1434770 1632 0.1
chip-tool debug (read only) 4892293 4894165 1872 0.0
(read/write) 166280 165640 -640 -0.4
.bss 40584 39944 -640 -1.6
.data 2272 2272 0 0.0
.data.rel.ro 117936 117936 0 0.0
.dynamic 592 592 0 0.0
.got 4416 4416 0 0.0
.init 27 27 0 0.0
.init_array 472 472 0 0.0
.rodata 265554 265586 32 0.0
.text 4317765 4319605 1840 0.0
ota-provider-app debug (read only) 1252473 1254105 1632 0.1
(read/write) 75560 74920 -640 -0.8
.bss 44832 44192 -640 -1.4
.data 784 784 0 0.0
.data.rel.ro 24840 24840 0 0.0
.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 112999 112999 0 0.0
.text 1042386 1044018 1632 0.2
ota-requestor-app debug (read only) 1335393 1337025 1632 0.1
(read/write) 79264 78624 -640 -0.8
.bss 47296 46656 -640 -1.4
.data 848 848 0 0.0
.data.rel.ro 26024 26024 0 0.0
.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 123792 123792 0 0.0
.text 1112178 1113810 1632 0.1
shell debug (read only) 794665 796169 1504 0.2
(read/write) 66088 65448 -640 -1.0
.bss 23816 23176 -640 -2.7
.data 242 242 0 0.0
.data.rel.ro 37520 37520 0 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 78479 78511 32 0.0
.text 612674 614146 1472 0.2
tv-app debug (read only) 1838569 1840441 1872 0.1
(read/write) 405016 404408 -608 -0.2
.bss 336968 336360 -608 -0.2
.data 2768 2768 0 0.0
.data.rel.ro 59600 59600 0 0.0
.dynamic 592 592 0 0.0
.got 4432 4432 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155149 155181 32 0.0
.text 1539154 1540994 1840 0.1
bridge-app debug+rpc (read only) 1297013 1298645 1632 0.1
(read/write) 76816 76176 -640 -0.8
.bss 42224 41584 -640 -1.5
.data 1568 1568 0 0.0
.data.rel.ro 28024 28024 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 110668 110668 0 0.0
.text 1089445 1091077 1632 0.1
lighting-app debug+rpc (read only) 1566073 1567737 1664 0.1
(read/write) 110064 109424 -640 -0.6
.bss 47888 47248 -640 -1.3
.data 1234 1234 0 0.0
.data.rel.ro 55616 55616 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 128273 128305 32 0.0
.text 1303298 1304930 1632 0.1
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2283728 2284048 320 0.0
.bss 179108 179148 40 0.0
.data 5216 5216 0 0.0
.heap 852120 852080 -40 -0.0
.text 1246328 1246648 320 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2269720 2270040 320 0.0
.bss 171972 172012 40 0.0
.data 5576 5576 0 0.0
.heap 858896 858856 -40 -0.0
.text 1232320 1232640 320 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2245560 2245880 320 0.0
.bss 170860 170900 40 0.0
.data 5568 5568 0 0.0
.heap 860016 859976 -40 -0.0
.text 1208160 1208480 320 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) 2049520 2049840 320 0.0
.bss 156160 156200 40 0.0
.data 4968 4968 0 0.0
.heap 875320 875280 -40 -0.0
.text 1012120 1012440 320 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860183 860455 272 0.0
bss 110384 110420 36 0.0
rodata 95032 95032 0 0.0
text 579140 579376 236 0.0
lock-app nrf52840dk_nrf52840 (read/write) 835579 835883 304 0.0
bss 109408 109444 36 0.0
rodata 91500 91500 0 0.0
text 559236 559476 240 0.0
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) 841723 841995 272 0.0
bss 109548 109584 36 0.0
rodata 93212 93212 0 0.0
text 563420 563660 240 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 835315 835587 272 0.0
bss 109444 109480 36 0.0
rodata 91460 91460 0 0.0
text 558856 559096 240 0.0
shell nrf52840dk_nrf52840 (read/write) 776239 776511 272 0.0
bss 109004 109040 36 0.0
rodata 72516 72516 0 0.0
text 520124 520352 228 0.0
lighting-app nrf52840dk_nrf52840+rpc (read/write) 822551 822823 272 0.0
bss 106740 106776 36 0.0
rodata 86216 86216 0 0.0
text 553312 553548 236 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785222 785494 272 0.0
bss 111760 111796 36 0.0
rodata 90288 90288 0 0.0
text 508608 508844 236 0.0
lock-app nrf5340dk_nrf5340_cpuapp (read/write) 760902 761174 272 0.0
bss 110820 110856 36 0.0
rodata 86808 86808 0 0.0
text 488796 489036 240 0.0
shell nrf5340dk_nrf5340_cpuapp (read/write) 691294 691550 256 0.0
bss 109988 110024 36 0.0
rodata 67160 67160 0 0.0
text 440732 440960 228 0.1
p6 all-clusters-app default (read/write) 2292608 2293144 536 0.0
.bss 112096 112136 40 0.0
.data 2520 2520 0 0.0
.heap 918728 918688 -40 -0.0
.text 1250872 1251408 536 0.0
lock-app default (read/write) 2210080 2210616 536 0.0
.bss 100720 100760 40 0.0
.data 2400 2400 0 0.0
.heap 930224 930184 -40 -0.0
.text 1168344 1168880 536 0.0
qpg lighting-app qpg6100+debug (read only) 489736 489992 256 0.1
(read/write) 114144 114144 0 0.0
.bss 50056 50096 40 0.1
.data 1008 1008 0 0.0
.text 484416 484672 256 0.1
lock-app qpg6100+debug (read only) 464692 464948 256 0.1
(read/write) 114140 114140 0 0.0
.bss 49000 49040 40 0.1
.data 964 964 0 0.0
.text 459372 459628 256 0.1
persistent-storage-app qpg6100+debug (read only) 105408 105648 240 0.2
(read/write) 114142 114142 0 0.0
.bss 8978 8994 16 0.2
.data 272 272 0 0.0
.text 100088 100328 240 0.2
telink lighting-app tlsr9518adk80d (read/write) 763014 763406 392 0.1
bss 78896 78932 36 0.0
noinit 37160 37160 0 0.0
text 529210 529556 346 0.1

@todo
Copy link

todo bot commented Nov 16, 2021

(#11880): Release all active objects (or verify that none are active) when destroying the pool.

// TODO(#11880): Release all active objects (or verify that none are active) when destroying the pool.
// ReleaseAll();
}
template <typename... Args>
T * CreateObject(Args &&... args)
{
T * object = new T(std::forward<Args>(args)...);
if (object != nullptr)
{
auto node = new internal::HeapObjectListNode();


This comment was generated by todo based on a TODO comment in 9d158a2 in #11698. cc @kpschoedel.

@github-actions
Copy link

github-actions bot commented Nov 16, 2021

PR #11698: Size comparison from 5a06fce to 9d158a2

Increases (36 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 5a06fce 9d158a2 change % change
efr32 lighting-app BRD4161A (read/write) 115364 115404 40 0.0
.bss 113564 113604 40 0.0
BRD4161A+rpc (read/write) 131992 132032 40 0.0
.bss 130068 130108 40 0.0
lock-app BRD4161A (read/write) 113148 113188 40 0.0
.bss 111388 111428 40 0.0
window-app BRD4161A (read/write) 113468 113508 40 0.0
.bss 111708 111748 40 0.0
esp32 all-clusters-app c3devkit (read only) 824912 824926 14 0.0
(read/write) 1219650 1219722 72 0.0
.dram0.bss 56512 56552 40 0.1
.flash.rodata 163800 163824 24 0.0
.flash.text 824912 824926 14 0.0
m5stack (read only) 895819 895827 8 0.0
(read/write) 418980 419044 64 0.0
.dram0.bss 61864 61904 40 0.1
.flash.rodata 191780 191804 24 0.0
.flash.text 890435 890443 8 0.0
k32w lighting-app k32w061+se05x+release (read/write) 703576 703632 56 0.0
.bss 76988 77028 40 0.1
.text 618876 618892 16 0.0
lock-app k32w061+debug (read/write) 595020 595068 48 0.0
.bss 67500 67532 32 0.0
.text 519840 519856 16 0.0
shell k32w061+debug (read/write) 660252 660324 72 0.0
.bss 78564 78620 56 0.1
.text 574040 574056 16 0.0
linux all-clusters-app debug (read only) 1701841 1702241 400 0.0
.rodata 135253 135285 32 0.0
.text 1433138 1433506 368 0.0
bridge-app debug+rpc (read only) 1297013 1297381 368 0.0
.text 1089445 1089813 368 0.0
chip-tool debug (read only) 4950077 4950477 400 0.0
.rodata 265778 265810 32 0.0
.text 4375157 4375525 368 0.0
lighting-app debug+rpc (read only) 1566073 1566473 400 0.0
.rodata 128273 128305 32 0.0
.text 1303298 1303666 368 0.0
ota-provider-app debug (read only) 1252473 1252841 368 0.0
.text 1042386 1042754 368 0.0
ota-requestor-app debug (read only) 1335553 1335953 400 0.0
.rodata 123920 123952 32 0.0
.text 1112210 1112578 368 0.0
shell debug (read only) 794665 795081 416 0.1
.rodata 78479 78511 32 0.0
.text 612674 613058 384 0.1
tv-app debug (read only) 1839065 1839465 400 0.0
.rodata 155277 155309 32 0.0
.text 1539522 1539890 368 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release .bss 179108 179148 40 0.0
lighting-app CY8CPROTO_062_4343W+release .bss 171972 172012 40 0.0
lock-app CY8CPROTO_062_4343W+release .bss 170860 170900 40 0.0
shell CY8CPROTO_062_4343W+release .bss 156160 156200 40 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860183 860199 16 0.0
bss 110384 110420 36 0.0
nrf52840dk_nrf52840+rpc (read/write) 822551 822567 16 0.0
bss 106740 106776 36 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785222 785238 16 0.0
bss 111760 111796 36 0.0
lock-app nrf52840dk_nrf52840 (read/write) 835579 835627 48 0.0
bss 109408 109444 36 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 760902 760934 32 0.0
bss 110820 110856 36 0.0
pump-app nrf52840dk_nrf52840 (read/write) 841723 841739 16 0.0
bss 109548 109584 36 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 835315 835331 16 0.0
bss 109444 109480 36 0.0
shell nrf52840dk_nrf52840 (read/write) 776239 776287 48 0.0
bss 109004 109040 36 0.0
text 520124 520132 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691294 691342 48 0.0
bss 109988 110024 36 0.0
text 440732 440740 8 0.0
p6 all-clusters-app default (read/write) 2292608 2292680 72 0.0
.bss 112096 112136 40 0.0
.text 1250872 1250944 72 0.0
lock-app default (read/write) 2210080 2210152 72 0.0
.bss 100720 100760 40 0.0
.text 1168344 1168416 72 0.0
qpg lighting-app qpg6100+debug (read only) 489736 489744 8 0.0
.bss 50056 50096 40 0.1
.text 484416 484424 8 0.0
lock-app qpg6100+debug (read only) 464692 464700 8 0.0
.bss 49000 49040 40 0.1
.text 459372 459380 8 0.0
persistent-storage-app qpg6100+debug (read only) 105408 105416 8 0.0
.bss 8978 8994 16 0.2
.text 100088 100096 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 763014 763078 64 0.0
bss 78896 78932 36 0.0
text 529210 529226 16 0.0
Decreases (25 builds for efr32, linux, mbed, nrfconnect, p6)
platform target config section 5a06fce 9d158a2 change % change
efr32 lighting-app BRD4161A (read only) 745208 745200 -8 -0.0
.text 745200 745192 -8 -0.0
BRD4161A+rpc (read only) 732724 732716 -8 -0.0
.text 732716 732708 -8 -0.0
lock-app BRD4161A (read only) 722296 722272 -24 -0.0
.text 722288 722264 -24 -0.0
window-app BRD4161A (read only) 723272 723248 -24 -0.0
.text 723264 723240 -24 -0.0
linux all-clusters-app debug (read/write) 126624 125984 -640 -0.5
.bss 57520 56880 -640 -1.1
bridge-app debug+rpc (read/write) 76816 76176 -640 -0.8
.bss 42224 41584 -640 -1.5
chip-tool debug (read/write) 166376 165736 -640 -0.4
.bss 40584 39944 -640 -1.6
lighting-app debug+rpc (read/write) 110064 109424 -640 -0.6
.bss 47888 47248 -640 -1.3
ota-provider-app debug (read/write) 75560 74920 -640 -0.8
.bss 44832 44192 -640 -1.4
ota-requestor-app debug (read/write) 79264 78624 -640 -0.8
.bss 47296 46656 -640 -1.4
shell debug (read/write) 66088 65448 -640 -1.0
.bss 23816 23176 -640 -2.7
tv-app debug (read/write) 405016 404408 -608 -0.2
.bss 336968 336360 -608 -0.2
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 852120 852080 -40 -0.0
lighting-app CY8CPROTO_062_4343W+release .heap 858896 858856 -40 -0.0
lock-app CY8CPROTO_062_4343W+release .heap 860016 859976 -40 -0.0
shell CY8CPROTO_062_4343W+release .heap 875320 875280 -40 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 text 579140 579124 -16 -0.0
nrf52840dk_nrf52840+rpc text 553312 553296 -16 -0.0
nrf5340dk_nrf5340_cpuapp text 508608 508592 -16 -0.0
lock-app nrf52840dk_nrf52840 text 559236 559228 -8 -0.0
nrf5340dk_nrf5340_cpuapp text 488796 488788 -8 -0.0
pump-app nrf52840dk_nrf52840 text 563420 563408 -12 -0.0
pump-controller-app nrf52840dk_nrf52840 text 558856 558848 -8 -0.0
p6 all-clusters-app default .heap 918728 918688 -40 -0.0
lock-app default .heap 930224 930184 -40 -0.0
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 5a06fce 9d158a2 change % change
efr32 lighting-app BRD4161A (read only) 745208 745200 -8 -0.0
(read/write) 115364 115404 40 0.0
.bss 113564 113604 40 0.0
.data 1800 1800 0 0.0
.text 745200 745192 -8 -0.0
BRD4161A+rpc (read only) 732724 732716 -8 -0.0
(read/write) 131992 132032 40 0.0
.bss 130068 130108 40 0.0
.data 1924 1924 0 0.0
.text 732716 732708 -8 -0.0
lock-app BRD4161A (read only) 722296 722272 -24 -0.0
(read/write) 113148 113188 40 0.0
.bss 111388 111428 40 0.0
.data 1756 1756 0 0.0
.text 722288 722264 -24 -0.0
window-app BRD4161A (read only) 723272 723248 -24 -0.0
(read/write) 113468 113508 40 0.0
.bss 111708 111748 40 0.0
.data 1760 1760 0 0.0
.text 723264 723240 -24 -0.0
esp32 all-clusters-app c3devkit (read only) 824912 824926 14 0.0
(read/write) 1219650 1219722 72 0.0
.dram0.bss 56512 56552 40 0.1
.dram0.data 14084 14084 0 0.0
.flash.rodata 163800 163824 24 0.0
.flash.text 824912 824926 14 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 895819 895827 8 0.0
(read/write) 418980 419044 64 0.0
.dram0.bss 61864 61904 40 0.1
.dram0.data 34056 34056 0 0.0
.flash.rodata 191780 191804 24 0.0
.flash.text 890435 890443 8 0.0
.iram0.text 122943 122943 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 703576 703632 56 0.0
.bss 76988 77028 40 0.1
.data 1912 1912 0 0.0
.text 618876 618892 16 0.0
lock-app k32w061+debug (read/write) 595020 595068 48 0.0
.bss 67500 67532 32 0.0
.data 1880 1880 0 0.0
.text 519840 519856 16 0.0
shell k32w061+debug (read/write) 660252 660324 72 0.0
.bss 78564 78620 56 0.1
.data 1848 1848 0 0.0
.text 574040 574056 16 0.0
linux all-clusters-app debug (read only) 1701841 1702241 400 0.0
(read/write) 126624 125984 -640 -0.5
.bss 57520 56880 -640 -1.1
.data 1042 1042 0 0.0
.data.rel.ro 62784 62784 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 135253 135285 32 0.0
.text 1433138 1433506 368 0.0
bridge-app debug+rpc (read only) 1297013 1297381 368 0.0
(read/write) 76816 76176 -640 -0.8
.bss 42224 41584 -640 -1.5
.data 1568 1568 0 0.0
.data.rel.ro 28024 28024 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 110668 110668 0 0.0
.text 1089445 1089813 368 0.0
chip-tool debug (read only) 4950077 4950477 400 0.0
(read/write) 166376 165736 -640 -0.4
.bss 40584 39944 -640 -1.6
.data 2272 2272 0 0.0
.data.rel.ro 118016 118016 0 0.0
.dynamic 592 592 0 0.0
.got 4416 4416 0 0.0
.init 27 27 0 0.0
.init_array 472 472 0 0.0
.rodata 265778 265810 32 0.0
.text 4375157 4375525 368 0.0
lighting-app debug+rpc (read only) 1566073 1566473 400 0.0
(read/write) 110064 109424 -640 -0.6
.bss 47888 47248 -640 -1.3
.data 1234 1234 0 0.0
.data.rel.ro 55616 55616 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 128273 128305 32 0.0
.text 1303298 1303666 368 0.0
ota-provider-app debug (read only) 1252473 1252841 368 0.0
(read/write) 75560 74920 -640 -0.8
.bss 44832 44192 -640 -1.4
.data 784 784 0 0.0
.data.rel.ro 24840 24840 0 0.0
.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 112999 112999 0 0.0
.text 1042386 1042754 368 0.0
ota-requestor-app debug (read only) 1335553 1335953 400 0.0
(read/write) 79264 78624 -640 -0.8
.bss 47296 46656 -640 -1.4
.data 848 848 0 0.0
.data.rel.ro 26024 26024 0 0.0
.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 123920 123952 32 0.0
.text 1112210 1112578 368 0.0
shell debug (read only) 794665 795081 416 0.1
(read/write) 66088 65448 -640 -1.0
.bss 23816 23176 -640 -2.7
.data 242 242 0 0.0
.data.rel.ro 37520 37520 0 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 78479 78511 32 0.0
.text 612674 613058 384 0.1
tv-app debug (read only) 1839065 1839465 400 0.0
(read/write) 405016 404408 -608 -0.2
.bss 336968 336360 -608 -0.2
.data 2768 2768 0 0.0
.data.rel.ro 59600 59600 0 0.0
.dynamic 592 592 0 0.0
.got 4432 4432 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 155277 155309 32 0.0
.text 1539522 1539890 368 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2283728 2283728 0 0.0
.bss 179108 179148 40 0.0
.data 5216 5216 0 0.0
.heap 852120 852080 -40 -0.0
.text 1246328 1246328 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2269720 2269720 0 0.0
.bss 171972 172012 40 0.0
.data 5576 5576 0 0.0
.heap 858896 858856 -40 -0.0
.text 1232320 1232320 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2245560 2245560 0 0.0
.bss 170860 170900 40 0.0
.data 5568 5568 0 0.0
.heap 860016 859976 -40 -0.0
.text 1208160 1208160 0 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) 2049520 2049520 0 0.0
.bss 156160 156200 40 0.0
.data 4968 4968 0 0.0
.heap 875320 875280 -40 -0.0
.text 1012120 1012120 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860183 860199 16 0.0
bss 110384 110420 36 0.0
rodata 95032 95032 0 0.0
text 579140 579124 -16 -0.0
nrf52840dk_nrf52840+rpc (read/write) 822551 822567 16 0.0
bss 106740 106776 36 0.0
rodata 86216 86216 0 0.0
text 553312 553296 -16 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785222 785238 16 0.0
bss 111760 111796 36 0.0
rodata 90288 90288 0 0.0
text 508608 508592 -16 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 835579 835627 48 0.0
bss 109408 109444 36 0.0
rodata 91500 91500 0 0.0
text 559236 559228 -8 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 760902 760934 32 0.0
bss 110820 110856 36 0.0
rodata 86808 86808 0 0.0
text 488796 488788 -8 -0.0
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) 841723 841739 16 0.0
bss 109548 109584 36 0.0
rodata 93212 93212 0 0.0
text 563420 563408 -12 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 835315 835331 16 0.0
bss 109444 109480 36 0.0
rodata 91460 91460 0 0.0
text 558856 558848 -8 -0.0
shell nrf52840dk_nrf52840 (read/write) 776239 776287 48 0.0
bss 109004 109040 36 0.0
rodata 72516 72516 0 0.0
text 520124 520132 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691294 691342 48 0.0
bss 109988 110024 36 0.0
rodata 67160 67160 0 0.0
text 440732 440740 8 0.0
p6 all-clusters-app default (read/write) 2292608 2292680 72 0.0
.bss 112096 112136 40 0.0
.data 2520 2520 0 0.0
.heap 918728 918688 -40 -0.0
.text 1250872 1250944 72 0.0
lock-app default (read/write) 2210080 2210152 72 0.0
.bss 100720 100760 40 0.0
.data 2400 2400 0 0.0
.heap 930224 930184 -40 -0.0
.text 1168344 1168416 72 0.0
qpg lighting-app qpg6100+debug (read only) 489736 489744 8 0.0
(read/write) 114144 114144 0 0.0
.bss 50056 50096 40 0.1
.data 1008 1008 0 0.0
.text 484416 484424 8 0.0
lock-app qpg6100+debug (read only) 464692 464700 8 0.0
(read/write) 114140 114140 0 0.0
.bss 49000 49040 40 0.1
.data 964 964 0 0.0
.text 459372 459380 8 0.0
persistent-storage-app qpg6100+debug (read only) 105408 105416 8 0.0
(read/write) 114142 114142 0 0.0
.bss 8978 8994 16 0.2
.data 272 272 0 0.0
.text 100088 100096 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 763014 763078 64 0.0
bss 78896 78932 36 0.0
noinit 37160 37160 0 0.0
text 529210 529226 16 0.0

@github-actions
Copy link

github-actions bot commented Nov 16, 2021

PR #11698: Size comparison from eb84a9d to b21add7

Increases (36 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section eb84a9d1 b21add7 change % change
efr32 lighting-app BRD4161A (read/write) 115364 115404 40 0.0
.bss 113564 113604 40 0.0
BRD4161A+rpc (read/write) 131992 132032 40 0.0
.bss 130068 130108 40 0.0
lock-app BRD4161A (read/write) 113148 113188 40 0.0
.bss 111388 111428 40 0.0
window-app BRD4161A (read/write) 113468 113508 40 0.0
.bss 111708 111748 40 0.0
esp32 all-clusters-app c3devkit (read only) 824912 824926 14 0.0
(read/write) 1219650 1219722 72 0.0
.dram0.bss 56512 56552 40 0.1
.flash.rodata 163800 163824 24 0.0
.flash.text 824912 824926 14 0.0
m5stack (read only) 895819 895827 8 0.0
(read/write) 418980 419044 64 0.0
.dram0.bss 61864 61904 40 0.1
.flash.rodata 191780 191804 24 0.0
.flash.text 890435 890443 8 0.0
k32w lighting-app k32w061+se05x+release (read/write) 703576 703632 56 0.0
.bss 76988 77028 40 0.1
.text 618876 618892 16 0.0
lock-app k32w061+debug (read/write) 595020 595068 48 0.0
.bss 67500 67532 32 0.0
.text 519840 519856 16 0.0
shell k32w061+debug (read/write) 660252 660324 72 0.0
.bss 78564 78620 56 0.1
.text 574040 574056 16 0.0
linux all-clusters-app debug (read only) 1701841 1702241 400 0.0
.rodata 135253 135285 32 0.0
.text 1433138 1433506 368 0.0
bridge-app debug+rpc (read only) 1297013 1297381 368 0.0
.text 1089445 1089813 368 0.0
chip-tool debug (read only) 4955885 4956301 416 0.0
.rodata 267090 267122 32 0.0
.text 4379365 4379749 384 0.0
lighting-app debug+rpc (read only) 1566073 1566473 400 0.0
.rodata 128273 128305 32 0.0
.text 1303298 1303666 368 0.0
ota-provider-app debug (read only) 1252473 1252841 368 0.0
.text 1042386 1042754 368 0.0
ota-requestor-app debug (read only) 1335857 1336257 400 0.0
.rodata 124016 124048 32 0.0
.text 1112418 1112786 368 0.0
shell debug (read only) 794665 795081 416 0.1
.rodata 78479 78511 32 0.0
.text 612674 613058 384 0.1
tv-app debug (read only) 1844841 1845241 400 0.0
.rodata 156557 156589 32 0.0
.text 1543730 1544098 368 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release .bss 179108 179148 40 0.0
lighting-app CY8CPROTO_062_4343W+release .bss 171972 172012 40 0.0
lock-app CY8CPROTO_062_4343W+release .bss 170860 170900 40 0.0
shell CY8CPROTO_062_4343W+release .bss 156160 156200 40 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860183 860199 16 0.0
bss 110384 110420 36 0.0
nrf52840dk_nrf52840+rpc (read/write) 822551 822567 16 0.0
bss 106740 106776 36 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785222 785238 16 0.0
bss 111760 111796 36 0.0
lock-app nrf52840dk_nrf52840 (read/write) 835579 835627 48 0.0
bss 109408 109444 36 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 760902 760934 32 0.0
bss 110820 110856 36 0.0
pump-app nrf52840dk_nrf52840 (read/write) 841723 841739 16 0.0
bss 109548 109584 36 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 835315 835331 16 0.0
bss 109444 109480 36 0.0
shell nrf52840dk_nrf52840 (read/write) 776239 776287 48 0.0
bss 109004 109040 36 0.0
text 520124 520132 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691294 691342 48 0.0
bss 109988 110024 36 0.0
text 440732 440740 8 0.0
p6 all-clusters-app default (read/write) 2292608 2292680 72 0.0
.bss 112096 112136 40 0.0
.text 1250872 1250944 72 0.0
lock-app default (read/write) 2210080 2210152 72 0.0
.bss 100720 100760 40 0.0
.text 1168344 1168416 72 0.0
qpg lighting-app qpg6100+debug (read only) 489736 489744 8 0.0
.bss 50056 50096 40 0.1
.text 484416 484424 8 0.0
lock-app qpg6100+debug (read only) 464692 464700 8 0.0
.bss 49000 49040 40 0.1
.text 459372 459380 8 0.0
persistent-storage-app qpg6100+debug (read only) 105408 105416 8 0.0
.bss 8978 8994 16 0.2
.text 100088 100096 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 763014 763078 64 0.0
bss 78896 78932 36 0.0
text 529210 529226 16 0.0
Decreases (25 builds for efr32, linux, mbed, nrfconnect, p6)
platform target config section eb84a9d1 b21add7 change % change
efr32 lighting-app BRD4161A (read only) 745208 745200 -8 -0.0
.text 745200 745192 -8 -0.0
BRD4161A+rpc (read only) 732724 732716 -8 -0.0
.text 732716 732708 -8 -0.0
lock-app BRD4161A (read only) 722296 722272 -24 -0.0
.text 722288 722264 -24 -0.0
window-app BRD4161A (read only) 723272 723248 -24 -0.0
.text 723264 723240 -24 -0.0
linux all-clusters-app debug (read/write) 126624 125984 -640 -0.5
.bss 57520 56880 -640 -1.1
bridge-app debug+rpc (read/write) 76816 76176 -640 -0.8
.bss 42224 41584 -640 -1.5
chip-tool debug (read/write) 166504 165864 -640 -0.4
.bss 40584 39944 -640 -1.6
lighting-app debug+rpc (read/write) 110064 109424 -640 -0.6
.bss 47888 47248 -640 -1.3
ota-provider-app debug (read/write) 75560 74920 -640 -0.8
.bss 44832 44192 -640 -1.4
ota-requestor-app debug (read/write) 79264 78624 -640 -0.8
.bss 47296 46656 -640 -1.4
shell debug (read/write) 66088 65448 -640 -1.0
.bss 23816 23176 -640 -2.7
tv-app debug (read/write) 318136 317560 -576 -0.2
.bss 249960 249384 -576 -0.2
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 852120 852080 -40 -0.0
lighting-app CY8CPROTO_062_4343W+release .heap 858896 858856 -40 -0.0
lock-app CY8CPROTO_062_4343W+release .heap 860016 859976 -40 -0.0
shell CY8CPROTO_062_4343W+release .heap 875320 875280 -40 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 text 579140 579124 -16 -0.0
nrf52840dk_nrf52840+rpc text 553312 553296 -16 -0.0
nrf5340dk_nrf5340_cpuapp text 508608 508592 -16 -0.0
lock-app nrf52840dk_nrf52840 text 559236 559228 -8 -0.0
nrf5340dk_nrf5340_cpuapp text 488796 488788 -8 -0.0
pump-app nrf52840dk_nrf52840 text 563420 563408 -12 -0.0
pump-controller-app nrf52840dk_nrf52840 text 558856 558848 -8 -0.0
p6 all-clusters-app default .heap 918728 918688 -40 -0.0
lock-app default .heap 930224 930184 -40 -0.0
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section eb84a9d1 b21add7 change % change
efr32 lighting-app BRD4161A (read only) 745208 745200 -8 -0.0
(read/write) 115364 115404 40 0.0
.bss 113564 113604 40 0.0
.data 1800 1800 0 0.0
.text 745200 745192 -8 -0.0
BRD4161A+rpc (read only) 732724 732716 -8 -0.0
(read/write) 131992 132032 40 0.0
.bss 130068 130108 40 0.0
.data 1924 1924 0 0.0
.text 732716 732708 -8 -0.0
lock-app BRD4161A (read only) 722296 722272 -24 -0.0
(read/write) 113148 113188 40 0.0
.bss 111388 111428 40 0.0
.data 1756 1756 0 0.0
.text 722288 722264 -24 -0.0
window-app BRD4161A (read only) 723272 723248 -24 -0.0
(read/write) 113468 113508 40 0.0
.bss 111708 111748 40 0.0
.data 1760 1760 0 0.0
.text 723264 723240 -24 -0.0
esp32 all-clusters-app c3devkit (read only) 824912 824926 14 0.0
(read/write) 1219650 1219722 72 0.0
.dram0.bss 56512 56552 40 0.1
.dram0.data 14084 14084 0 0.0
.flash.rodata 163800 163824 24 0.0
.flash.text 824912 824926 14 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 895819 895827 8 0.0
(read/write) 418980 419044 64 0.0
.dram0.bss 61864 61904 40 0.1
.dram0.data 34056 34056 0 0.0
.flash.rodata 191780 191804 24 0.0
.flash.text 890435 890443 8 0.0
.iram0.text 122943 122943 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 703576 703632 56 0.0
.bss 76988 77028 40 0.1
.data 1912 1912 0 0.0
.text 618876 618892 16 0.0
lock-app k32w061+debug (read/write) 595020 595068 48 0.0
.bss 67500 67532 32 0.0
.data 1880 1880 0 0.0
.text 519840 519856 16 0.0
shell k32w061+debug (read/write) 660252 660324 72 0.0
.bss 78564 78620 56 0.1
.data 1848 1848 0 0.0
.text 574040 574056 16 0.0
linux all-clusters-app debug (read only) 1701841 1702241 400 0.0
(read/write) 126624 125984 -640 -0.5
.bss 57520 56880 -640 -1.1
.data 1042 1042 0 0.0
.data.rel.ro 62784 62784 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 135253 135285 32 0.0
.text 1433138 1433506 368 0.0
bridge-app debug+rpc (read only) 1297013 1297381 368 0.0
(read/write) 76816 76176 -640 -0.8
.bss 42224 41584 -640 -1.5
.data 1568 1568 0 0.0
.data.rel.ro 28024 28024 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 110668 110668 0 0.0
.text 1089445 1089813 368 0.0
chip-tool debug (read only) 4955885 4956301 416 0.0
(read/write) 166504 165864 -640 -0.4
.bss 40584 39944 -640 -1.6
.data 2272 2272 0 0.0
.data.rel.ro 118136 118136 0 0.0
.dynamic 592 592 0 0.0
.got 4416 4416 0 0.0
.init 27 27 0 0.0
.init_array 472 472 0 0.0
.rodata 267090 267122 32 0.0
.text 4379365 4379749 384 0.0
lighting-app debug+rpc (read only) 1566073 1566473 400 0.0
(read/write) 110064 109424 -640 -0.6
.bss 47888 47248 -640 -1.3
.data 1234 1234 0 0.0
.data.rel.ro 55616 55616 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 128273 128305 32 0.0
.text 1303298 1303666 368 0.0
ota-provider-app debug (read only) 1252473 1252841 368 0.0
(read/write) 75560 74920 -640 -0.8
.bss 44832 44192 -640 -1.4
.data 784 784 0 0.0
.data.rel.ro 24840 24840 0 0.0
.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 112999 112999 0 0.0
.text 1042386 1042754 368 0.0
ota-requestor-app debug (read only) 1335857 1336257 400 0.0
(read/write) 79264 78624 -640 -0.8
.bss 47296 46656 -640 -1.4
.data 848 848 0 0.0
.data.rel.ro 26024 26024 0 0.0
.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 124016 124048 32 0.0
.text 1112418 1112786 368 0.0
shell debug (read only) 794665 795081 416 0.1
(read/write) 66088 65448 -640 -1.0
.bss 23816 23176 -640 -2.7
.data 242 242 0 0.0
.data.rel.ro 37520 37520 0 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 78479 78511 32 0.0
.text 612674 613058 384 0.1
tv-app debug (read only) 1844841 1845241 400 0.0
(read/write) 318136 317560 -576 -0.2
.bss 249960 249384 -576 -0.2
.data 2768 2768 0 0.0
.data.rel.ro 59720 59720 0 0.0
.dynamic 592 592 0 0.0
.got 4432 4432 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 156557 156589 32 0.0
.text 1543730 1544098 368 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2283728 2283728 0 0.0
.bss 179108 179148 40 0.0
.data 5216 5216 0 0.0
.heap 852120 852080 -40 -0.0
.text 1246328 1246328 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2269720 2269720 0 0.0
.bss 171972 172012 40 0.0
.data 5576 5576 0 0.0
.heap 858896 858856 -40 -0.0
.text 1232320 1232320 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2245560 2245560 0 0.0
.bss 170860 170900 40 0.0
.data 5568 5568 0 0.0
.heap 860016 859976 -40 -0.0
.text 1208160 1208160 0 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) 2049520 2049520 0 0.0
.bss 156160 156200 40 0.0
.data 4968 4968 0 0.0
.heap 875320 875280 -40 -0.0
.text 1012120 1012120 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860183 860199 16 0.0
bss 110384 110420 36 0.0
rodata 95032 95032 0 0.0
text 579140 579124 -16 -0.0
nrf52840dk_nrf52840+rpc (read/write) 822551 822567 16 0.0
bss 106740 106776 36 0.0
rodata 86216 86216 0 0.0
text 553312 553296 -16 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785222 785238 16 0.0
bss 111760 111796 36 0.0
rodata 90288 90288 0 0.0
text 508608 508592 -16 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 835579 835627 48 0.0
bss 109408 109444 36 0.0
rodata 91500 91500 0 0.0
text 559236 559228 -8 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 760902 760934 32 0.0
bss 110820 110856 36 0.0
rodata 86808 86808 0 0.0
text 488796 488788 -8 -0.0
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) 841723 841739 16 0.0
bss 109548 109584 36 0.0
rodata 93212 93212 0 0.0
text 563420 563408 -12 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 835315 835331 16 0.0
bss 109444 109480 36 0.0
rodata 91460 91460 0 0.0
text 558856 558848 -8 -0.0
shell nrf52840dk_nrf52840 (read/write) 776239 776287 48 0.0
bss 109004 109040 36 0.0
rodata 72516 72516 0 0.0
text 520124 520132 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691294 691342 48 0.0
bss 109988 110024 36 0.0
rodata 67160 67160 0 0.0
text 440732 440740 8 0.0
p6 all-clusters-app default (read/write) 2292608 2292680 72 0.0
.bss 112096 112136 40 0.0
.data 2520 2520 0 0.0
.heap 918728 918688 -40 -0.0
.text 1250872 1250944 72 0.0
lock-app default (read/write) 2210080 2210152 72 0.0
.bss 100720 100760 40 0.0
.data 2400 2400 0 0.0
.heap 930224 930184 -40 -0.0
.text 1168344 1168416 72 0.0
qpg lighting-app qpg6100+debug (read only) 489736 489744 8 0.0
(read/write) 114144 114144 0 0.0
.bss 50056 50096 40 0.1
.data 1008 1008 0 0.0
.text 484416 484424 8 0.0
lock-app qpg6100+debug (read only) 464692 464700 8 0.0
(read/write) 114140 114140 0 0.0
.bss 49000 49040 40 0.1
.data 964 964 0 0.0
.text 459372 459380 8 0.0
persistent-storage-app qpg6100+debug (read only) 105408 105416 8 0.0
(read/write) 114142 114142 0 0.0
.bss 8978 8994 16 0.2
.data 272 272 0 0.0
.text 100088 100096 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 763014 763078 64 0.0
bss 78896 78932 36 0.0
noinit 37160 37160 0 0.0
text 529210 529226 16 0.0

@kpschoedel kpschoedel marked this pull request as ready for review November 17, 2021 14:57
@github-actions
Copy link

github-actions bot commented Nov 17, 2021

PR #11698: Size comparison from e338b6e to 3758224

Increases (36 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section e338b6e 3758224 change % change
efr32 lighting-app BRD4161A (read/write) 115364 115404 40 0.0
.bss 113564 113604 40 0.0
BRD4161A+rpc (read/write) 131992 132032 40 0.0
.bss 130068 130108 40 0.0
lock-app BRD4161A (read/write) 113148 113188 40 0.0
.bss 111388 111428 40 0.0
window-app BRD4161A (read/write) 113468 113508 40 0.0
.bss 111708 111748 40 0.0
esp32 all-clusters-app c3devkit (read only) 825156 825170 14 0.0
(read/write) 1219762 1219834 72 0.0
.dram0.bss 56512 56552 40 0.1
.flash.rodata 163912 163936 24 0.0
.flash.text 825156 825170 14 0.0
m5stack (read only) 896155 896163 8 0.0
(read/write) 419084 419140 56 0.0
.dram0.bss 61864 61904 40 0.1
.flash.rodata 191884 191900 16 0.0
.flash.text 890771 890779 8 0.0
k32w lighting-app k32w061+se05x+release (read/write) 703888 703944 56 0.0
.bss 76988 77028 40 0.1
.text 619188 619204 16 0.0
lock-app k32w061+debug (read/write) 595332 595380 48 0.0
.bss 67500 67532 32 0.0
.text 520152 520168 16 0.0
shell k32w061+debug (read/write) 660564 660636 72 0.0
.bss 78564 78620 56 0.1
.text 574352 574368 16 0.0
linux all-clusters-app debug (read only) 1702945 1703361 416 0.0
.rodata 135349 135381 32 0.0
.text 1434146 1434530 384 0.0
bridge-app debug+rpc (read only) 1298117 1298501 384 0.0
.text 1090453 1090837 384 0.0
chip-tool debug (read only) 4957053 4957437 384 0.0
.text 4380437 4380821 384 0.0
lighting-app debug+rpc (read only) 1567209 1567593 384 0.0
.text 1304306 1304690 384 0.0
ota-provider-app debug (read only) 1253449 1253865 416 0.0
.rodata 113063 113095 32 0.0
.text 1043298 1043682 384 0.0
ota-requestor-app debug (read only) 1337025 1337441 416 0.0
.rodata 124112 124144 32 0.0
.text 1113490 1113874 384 0.0
shell debug (read only) 794665 795081 416 0.1
.rodata 78479 78511 32 0.0
.text 612674 613058 384 0.1
tv-app debug (read only) 1846089 1846505 416 0.0
.rodata 156653 156685 32 0.0
.text 1544882 1545266 384 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release .bss 179108 179148 40 0.0
lighting-app CY8CPROTO_062_4343W+release .bss 171972 172012 40 0.0
lock-app CY8CPROTO_062_4343W+release .bss 170860 170900 40 0.0
shell CY8CPROTO_062_4343W+release .bss 156160 156200 40 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860479 860511 32 0.0
bss 110384 110420 36 0.0
nrf52840dk_nrf52840+rpc (read/write) 822863 822879 16 0.0
bss 106740 106776 36 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785534 785550 16 0.0
bss 111760 111796 36 0.0
lock-app nrf52840dk_nrf52840 (read/write) 835875 835939 64 0.0
bss 109408 109444 36 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 761214 761230 16 0.0
bss 110820 110856 36 0.0
pump-app nrf52840dk_nrf52840 (read/write) 842019 842051 32 0.0
bss 109548 109584 36 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 835611 835643 32 0.0
bss 109444 109480 36 0.0
shell nrf52840dk_nrf52840 (read/write) 776239 776287 48 0.0
bss 109004 109040 36 0.0
text 520124 520132 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691294 691342 48 0.0
bss 109988 110024 36 0.0
text 440732 440740 8 0.0
p6 all-clusters-app default (read/write) 2292864 2292936 72 0.0
.bss 112096 112136 40 0.0
.text 1251128 1251200 72 0.0
lock-app default (read/write) 2210336 2210408 72 0.0
.bss 100720 100760 40 0.0
.text 1168600 1168672 72 0.0
qpg lighting-app qpg6100+debug (read only) 490096 490104 8 0.0
.bss 50056 50096 40 0.1
.text 484776 484784 8 0.0
lock-app qpg6100+debug (read only) 465076 465084 8 0.0
.bss 49000 49040 40 0.1
.text 459756 459764 8 0.0
persistent-storage-app qpg6100+debug (read only) 105408 105416 8 0.0
.bss 8978 8994 16 0.2
.text 100088 100096 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 763282 763346 64 0.0
bss 78896 78932 36 0.0
text 529372 529388 16 0.0
Decreases (25 builds for efr32, linux, mbed, nrfconnect, p6)
platform target config section e338b6e 3758224 change % change
efr32 lighting-app BRD4161A (read only) 745480 745456 -24 -0.0
.text 745472 745448 -24 -0.0
BRD4161A+rpc (read only) 732996 732972 -24 -0.0
.text 732988 732964 -24 -0.0
lock-app BRD4161A (read only) 722552 722544 -8 -0.0
.text 722544 722536 -8 -0.0
window-app BRD4161A (read only) 723528 723504 -24 -0.0
.text 723520 723496 -24 -0.0
linux all-clusters-app debug (read/write) 126624 126016 -608 -0.5
.bss 57520 56912 -608 -1.1
bridge-app debug+rpc (read/write) 76816 76208 -608 -0.8
.bss 42224 41616 -608 -1.4
chip-tool debug (read/write) 166504 165896 -608 -0.4
.bss 40584 39976 -608 -1.5
lighting-app debug+rpc (read/write) 110064 109456 -608 -0.6
.bss 47888 47280 -608 -1.3
ota-provider-app debug (read/write) 75560 74952 -608 -0.8
.bss 44832 44224 -608 -1.4
ota-requestor-app debug (read/write) 79264 78656 -608 -0.8
.bss 47296 46688 -608 -1.3
shell debug (read/write) 66088 65480 -608 -0.9
.bss 23816 23208 -608 -2.6
tv-app debug (read/write) 318136 317560 -576 -0.2
.bss 249960 249384 -576 -0.2
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 852120 852080 -40 -0.0
lighting-app CY8CPROTO_062_4343W+release .heap 858896 858856 -40 -0.0
lock-app CY8CPROTO_062_4343W+release .heap 860016 859976 -40 -0.0
shell CY8CPROTO_062_4343W+release .heap 875320 875280 -40 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 text 579340 579328 -12 -0.0
nrf52840dk_nrf52840+rpc text 553512 553500 -12 -0.0
nrf5340dk_nrf5340_cpuapp text 508812 508796 -16 -0.0
lock-app nrf52840dk_nrf52840 text 559440 559428 -12 -0.0
nrf5340dk_nrf5340_cpuapp text 489000 488992 -8 -0.0
pump-app nrf52840dk_nrf52840 text 563620 563612 -8 -0.0
pump-controller-app nrf52840dk_nrf52840 text 559060 559048 -12 -0.0
p6 all-clusters-app default .heap 918728 918688 -40 -0.0
lock-app default .heap 930224 930184 -40 -0.0
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section e338b6e 3758224 change % change
efr32 lighting-app BRD4161A (read only) 745480 745456 -24 -0.0
(read/write) 115364 115404 40 0.0
.bss 113564 113604 40 0.0
.data 1800 1800 0 0.0
.text 745472 745448 -24 -0.0
BRD4161A+rpc (read only) 732996 732972 -24 -0.0
(read/write) 131992 132032 40 0.0
.bss 130068 130108 40 0.0
.data 1924 1924 0 0.0
.text 732988 732964 -24 -0.0
lock-app BRD4161A (read only) 722552 722544 -8 -0.0
(read/write) 113148 113188 40 0.0
.bss 111388 111428 40 0.0
.data 1756 1756 0 0.0
.text 722544 722536 -8 -0.0
window-app BRD4161A (read only) 723528 723504 -24 -0.0
(read/write) 113468 113508 40 0.0
.bss 111708 111748 40 0.0
.data 1760 1760 0 0.0
.text 723520 723496 -24 -0.0
esp32 all-clusters-app c3devkit (read only) 825156 825170 14 0.0
(read/write) 1219762 1219834 72 0.0
.dram0.bss 56512 56552 40 0.1
.dram0.data 14084 14084 0 0.0
.flash.rodata 163912 163936 24 0.0
.flash.text 825156 825170 14 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 896155 896163 8 0.0
(read/write) 419084 419140 56 0.0
.dram0.bss 61864 61904 40 0.1
.dram0.data 34056 34056 0 0.0
.flash.rodata 191884 191900 16 0.0
.flash.text 890771 890779 8 0.0
.iram0.text 122943 122943 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 703888 703944 56 0.0
.bss 76988 77028 40 0.1
.data 1912 1912 0 0.0
.text 619188 619204 16 0.0
lock-app k32w061+debug (read/write) 595332 595380 48 0.0
.bss 67500 67532 32 0.0
.data 1880 1880 0 0.0
.text 520152 520168 16 0.0
shell k32w061+debug (read/write) 660564 660636 72 0.0
.bss 78564 78620 56 0.1
.data 1848 1848 0 0.0
.text 574352 574368 16 0.0
linux all-clusters-app debug (read only) 1702945 1703361 416 0.0
(read/write) 126624 126016 -608 -0.5
.bss 57520 56912 -608 -1.1
.data 1042 1042 0 0.0
.data.rel.ro 62784 62784 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 135349 135381 32 0.0
.text 1434146 1434530 384 0.0
bridge-app debug+rpc (read only) 1298117 1298501 384 0.0
(read/write) 76816 76208 -608 -0.8
.bss 42224 41616 -608 -1.4
.data 1568 1568 0 0.0
.data.rel.ro 28024 28024 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 110764 110764 0 0.0
.text 1090453 1090837 384 0.0
chip-tool debug (read only) 4957053 4957437 384 0.0
(read/write) 166504 165896 -608 -0.4
.bss 40584 39976 -608 -1.5
.data 2272 2272 0 0.0
.data.rel.ro 118136 118136 0 0.0
.dynamic 592 592 0 0.0
.got 4416 4416 0 0.0
.init 27 27 0 0.0
.init_array 472 472 0 0.0
.rodata 267186 267186 0 0.0
.text 4380437 4380821 384 0.0
lighting-app debug+rpc (read only) 1567209 1567593 384 0.0
(read/write) 110064 109456 -608 -0.6
.bss 47888 47280 -608 -1.3
.data 1234 1234 0 0.0
.data.rel.ro 55616 55616 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 128401 128401 0 0.0
.text 1304306 1304690 384 0.0
ota-provider-app debug (read only) 1253449 1253865 416 0.0
(read/write) 75560 74952 -608 -0.8
.bss 44832 44224 -608 -1.4
.data 784 784 0 0.0
.data.rel.ro 24840 24840 0 0.0
.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 113063 113095 32 0.0
.text 1043298 1043682 384 0.0
ota-requestor-app debug (read only) 1337025 1337441 416 0.0
(read/write) 79264 78656 -608 -0.8
.bss 47296 46688 -608 -1.3
.data 848 848 0 0.0
.data.rel.ro 26024 26024 0 0.0
.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 124112 124144 32 0.0
.text 1113490 1113874 384 0.0
shell debug (read only) 794665 795081 416 0.1
(read/write) 66088 65480 -608 -0.9
.bss 23816 23208 -608 -2.6
.data 242 242 0 0.0
.data.rel.ro 37520 37520 0 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 78479 78511 32 0.0
.text 612674 613058 384 0.1
tv-app debug (read only) 1846089 1846505 416 0.0
(read/write) 318136 317560 -576 -0.2
.bss 249960 249384 -576 -0.2
.data 2768 2768 0 0.0
.data.rel.ro 59720 59720 0 0.0
.dynamic 592 592 0 0.0
.got 4432 4432 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 156653 156685 32 0.0
.text 1544882 1545266 384 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2284296 2284296 0 0.0
.bss 179108 179148 40 0.0
.data 5216 5216 0 0.0
.heap 852120 852080 -40 -0.0
.text 1246896 1246896 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2270288 2270288 0 0.0
.bss 171972 172012 40 0.0
.data 5576 5576 0 0.0
.heap 858896 858856 -40 -0.0
.text 1232888 1232888 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2246128 2246128 0 0.0
.bss 170860 170900 40 0.0
.data 5568 5568 0 0.0
.heap 860016 859976 -40 -0.0
.text 1208728 1208728 0 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) 2049520 2049520 0 0.0
.bss 156160 156200 40 0.0
.data 4968 4968 0 0.0
.heap 875320 875280 -40 -0.0
.text 1012120 1012120 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 860479 860511 32 0.0
bss 110384 110420 36 0.0
rodata 95136 95136 0 0.0
text 579340 579328 -12 -0.0
nrf52840dk_nrf52840+rpc (read/write) 822863 822879 16 0.0
bss 106740 106776 36 0.0
rodata 86320 86320 0 0.0
text 553512 553500 -12 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 785534 785550 16 0.0
bss 111760 111796 36 0.0
rodata 90392 90392 0 0.0
text 508812 508796 -16 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 835875 835939 64 0.0
bss 109408 109444 36 0.0
rodata 91604 91604 0 0.0
text 559440 559428 -12 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 761214 761230 16 0.0
bss 110820 110856 36 0.0
rodata 86912 86912 0 0.0
text 489000 488992 -8 -0.0
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) 842019 842051 32 0.0
bss 109548 109584 36 0.0
rodata 93316 93316 0 0.0
text 563620 563612 -8 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 835611 835643 32 0.0
bss 109444 109480 36 0.0
rodata 91564 91564 0 0.0
text 559060 559048 -12 -0.0
shell nrf52840dk_nrf52840 (read/write) 776239 776287 48 0.0
bss 109004 109040 36 0.0
rodata 72516 72516 0 0.0
text 520124 520132 8 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691294 691342 48 0.0
bss 109988 110024 36 0.0
rodata 67160 67160 0 0.0
text 440732 440740 8 0.0
p6 all-clusters-app default (read/write) 2292864 2292936 72 0.0
.bss 112096 112136 40 0.0
.data 2520 2520 0 0.0
.heap 918728 918688 -40 -0.0
.text 1251128 1251200 72 0.0
lock-app default (read/write) 2210336 2210408 72 0.0
.bss 100720 100760 40 0.0
.data 2400 2400 0 0.0
.heap 930224 930184 -40 -0.0
.text 1168600 1168672 72 0.0
qpg lighting-app qpg6100+debug (read only) 490096 490104 8 0.0
(read/write) 114144 114144 0 0.0
.bss 50056 50096 40 0.1
.data 1008 1008 0 0.0
.text 484776 484784 8 0.0
lock-app qpg6100+debug (read only) 465076 465084 8 0.0
(read/write) 114140 114140 0 0.0
.bss 49000 49040 40 0.1
.data 964 964 0 0.0
.text 459756 459764 8 0.0
persistent-storage-app qpg6100+debug (read only) 105408 105416 8 0.0
(read/write) 114142 114142 0 0.0
.bss 8978 8994 16 0.2
.data 272 272 0 0.0
.text 100088 100096 8 0.0
telink lighting-app tlsr9518adk80d (read/write) 763282 763346 64 0.0
bss 78896 78932 36 0.0
noinit 37160 37160 0 0.0
text 529372 529388 16 0.0

kpschoedel added a commit to kpschoedel/connectedhomeip that referenced this pull request Nov 18, 2021
#### Problem

`chip::Server::Shutdown()` contains

```
chip::Dnssd::ServiceAdvertiser::Instance().Shutdown();
    ⋮
mCommissioningWindowManager.Cleanup();
```

but the latter restarts `Dnssd::ServiceAdvertiser`.

Instance of project-chip#11880 _Possible use of destroyed pool objects_

#### Change overview

Add `CommissioningWindowManager::Shutdown()` which does not restart DNS.

#### Testing

If `ObjectPool` checks that objects do not outlive it
(originally part of PR project-chip#11698 but deferred due to current leaks),
then `TestCommissionManager` fails without this change.
kpschoedel added a commit to kpschoedel/connectedhomeip that referenced this pull request Nov 18, 2021
#### Problem

`chip::Server::Shutdown()` contains

```
chip::Dnssd::ServiceAdvertiser::Instance().Shutdown();
    ⋮
mCommissioningWindowManager.Cleanup();
```

but the latter restarts `Dnssd::ServiceAdvertiser`.

Instance of project-chip#11880 _Possible use of destroyed pool objects_

#### Change overview

Add `CommissioningWindowManager::Shutdown()` which does not restart DNS.

#### Testing

If `ObjectPool` checks that objects do not outlive it
(originally part of PR project-chip#11698 but deferred due to current leaks),
then `TestCommissionManager` fails without this change.
kpschoedel added a commit to kpschoedel/connectedhomeip that referenced this pull request Nov 19, 2021
#### Problem

`echo_requester.cpp` leaks TCP endpoints.

Instance of project-chip#11880 _Possible use of destroyed pool objects_

#### Change overview

Shut down `TCPManager`.

#### Testing

If `ObjectPool` checks that objects do not outlive it
(originally part of PR project-chip#11698 but deferred due to current leaks),
then Cirque CI fails without this change.
@kpschoedel kpschoedel merged commit 1adaf7a into project-chip:master Nov 19, 2021
@kpschoedel kpschoedel deleted the x7715-pool-heap branch November 19, 2021 16:59
kpschoedel added a commit that referenced this pull request Nov 21, 2021
#### Problem

`echo_requester.cpp` leaks TCP endpoints.

Instance of #11880 _Possible use of destroyed pool objects_

#### Change overview

Shut down `TCPManager`.

#### Testing

If `ObjectPool` checks that objects do not outlive it
(originally part of PR #11698 but deferred due to current leaks),
then Cirque CI fails without this change.
Damian-Nordic pushed a commit that referenced this pull request Nov 22, 2021
#### Problem

`chip::Server::Shutdown()` contains

```
chip::Dnssd::ServiceAdvertiser::Instance().Shutdown();
    ⋮
mCommissioningWindowManager.Cleanup();
```

but the latter restarts `Dnssd::ServiceAdvertiser`.

Instance of #11880 _Possible use of destroyed pool objects_

#### Change overview

Add `CommissioningWindowManager::Shutdown()` which does not restart DNS.

#### Testing

If `ObjectPool` checks that objects do not outlive it
(originally part of PR #11698 but deferred due to current leaks),
then `TestCommissionManager` fails without this change.
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.

7 participants