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 Application Callback for Subscription Handling #16517

Conversation

mrjerryjohns
Copy link
Contributor

@mrjerryjohns mrjerryjohns commented Mar 22, 2022

Adds a new ReadHandler::ApplicationCallback that permits notifying the application of notable happenings on subscriptions as well as giving them a chance to alter the min/max intervals setup as part of
subscriptions.

This also alters the public/private slicing of the APIs in ReadHandler where 'public' previously denoted APIs that other
IM-internal classes (like reporting::Engine or InteractionModelEngine) accessed. Since this PR makes it such that the application-proper can now access some of the APIs in ReadHandler, I've made public really denote application-facing APIs, and moved the rest into private + friends.

Tests:

  • Add some unit tests to TestRead to validate the positive/negative behaviors added.

Adds a new ReadHandler::ApplicationCallback that permits notifying the
application of notable happenings on subscriptions as well as giving
them a chance to alter the min/max intervals setup as part of
subscriptions.

Tests:
- Add some unit tests to TestRead to validate the positive/negative behaviors added.
@github-actions
Copy link

github-actions bot commented Mar 22, 2022

PR #16517: Size comparison from 6443a56 to 0db0f41

Increases (18 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 6443a56 0db0f41 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603870 604078 208 0.0
.app_xip_area 510968 511168 200 0.0
.bss 75656 75664 8 0.0
lock cyw930739m2evb_01 (read/write) 561658 561874 216 0.0
.app_xip_area 470284 470492 208 0.0
.bss 74160 74168 8 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 571494 571622 128 0.0
.app_xip_area 470472 470592 120 0.0
.bss 83488 83496 8 0.0
efr32 lighting-app BRD4161A (read only) 922008 922216 208 0.0
(read/write) 128760 128768 8 0.0
.bss 126768 126776 8 0.0
.text 922000 922208 208 0.0
BRD4161A+rpc (read only) 950820 951028 208 0.0
(read/write) 144712 144720 8 0.0
.bss 142544 142552 8 0.0
.text 950812 951020 208 0.0
window-app BRD4161A (read only) 852384 852600 216 0.0
(read/write) 126720 126728 8 0.0
.bss 124856 124864 8 0.0
.text 852376 852592 216 0.0
esp32 all-clusters-app c3devkit (read only) 961980 962144 164 0.0
(read/write) 1393306 1393378 72 0.0
.dram0.bss 62048 62056 8 0.0
.flash.rodata 198160 198216 56 0.0
.flash.text 961980 962144 164 0.0
m5stack (read only) 1018095 1018239 144 0.0
(read/write) 461148 461220 72 0.0
.dram0.bss 67576 67584 8 0.0
.flash.rodata 227720 227784 64 0.0
.flash.text 1012711 1012855 144 0.0
k32w light k32w061+release (read/write) 701092 701300 208 0.0
.bss 77656 77664 8 0.0
.text 615768 615968 200 0.0
lock k32w061+release (read/write) 700964 701172 208 0.0
.bss 77624 77632 8 0.0
.text 615632 615832 200 0.0
linux chip-tool-ipv6only arm64 (read only) 9769404 9769852 448 0.0
(read/write) 472689 472705 16 0.0
.bss 40609 40625 16 0.0
.rodata 493604 493652 48 0.0
.text 8224436 8224836 400 0.0
thermostat-no-ble arm64 (read only) 2262500 2262964 464 0.0
.rodata 140036 140100 64 0.0
.text 1899152 1899552 400 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2353452 2353700 248 0.0
.bss 184652 184660 8 0.0
.text 1316052 1316300 248 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1155987 1156187 200 0.0
bss 146716 146724 8 0.0
rodata 145956 146012 56 0.0
text 788148 788300 152 0.0
p6 all-clusters-app default (read/write) 2492976 2493176 200 0.0
.bss 118072 118080 8 0.0
.text 1451240 1451440 200 0.0
light-app default (read/write) 2396376 2396592 216 0.0
.bss 111544 111552 8 0.0
.text 1354640 1354856 216 0.0
lock-app default (read/write) 2359928 2360128 200 0.0
.bss 111288 111296 8 0.0
.text 1318192 1318392 200 0.0
telink lighting-app tlsr9518adk80d (read/write) 895830 896074 244 0.0
bss 87424 87432 8 0.0
text 633404 633570 166 0.0
Full report (18 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 6443a56 0db0f41 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603870 604078 208 0.0
.app_xip_area 510968 511168 200 0.0
.bss 75656 75664 8 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 561658 561874 216 0.0
.app_xip_area 470284 470492 208 0.0
.bss 74160 74168 8 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 571494 571622 128 0.0
.app_xip_area 470472 470592 120 0.0
.bss 83488 83496 8 0.0
.data 500 500 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 922008 922216 208 0.0
(read/write) 128760 128768 8 0.0
.bss 126768 126776 8 0.0
.data 1988 1988 0 0.0
.text 922000 922208 208 0.0
BRD4161A+rpc (read only) 950820 951028 208 0.0
(read/write) 144712 144720 8 0.0
.bss 142544 142552 8 0.0
.data 2168 2168 0 0.0
.text 950812 951020 208 0.0
window-app BRD4161A (read only) 852384 852600 216 0.0
(read/write) 126720 126728 8 0.0
.bss 124856 124864 8 0.0
.data 1864 1864 0 0.0
.text 852376 852592 216 0.0
esp32 all-clusters-app c3devkit (read only) 961980 962144 164 0.0
(read/write) 1393306 1393378 72 0.0
.dram0.bss 62048 62056 8 0.0
.dram0.data 14188 14188 0 0.0
.flash.rodata 198160 198216 56 0.0
.flash.text 961980 962144 164 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1018095 1018239 144 0.0
(read/write) 461148 461220 72 0.0
.dram0.bss 67576 67584 8 0.0
.dram0.data 34016 34016 0 0.0
.flash.rodata 227720 227784 64 0.0
.flash.text 1012711 1012855 144 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 701092 701300 208 0.0
.bss 77656 77664 8 0.0
.data 1868 1868 0 0.0
.text 615768 615968 200 0.0
lock k32w061+release (read/write) 700964 701172 208 0.0
.bss 77624 77632 8 0.0
.data 1908 1908 0 0.0
.text 615632 615832 200 0.0
linux chip-tool-ipv6only arm64 (read only) 9769404 9769852 448 0.0
(read/write) 472689 472705 16 0.0
.bss 40609 40625 16 0.0
.data 1128 1128 0 0.0
.data.rel.ro 371824 371824 0 0.0
.dynamic 560 560 0 0.0
.got 55328 55328 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 493604 493652 48 0.0
.text 8224436 8224836 400 0.0
thermostat-no-ble arm64 (read only) 2262500 2262964 464 0.0
(read/write) 148273 148273 0 0.0
.bss 62753 62753 0 0.0
.data 1024 1024 0 0.0
.data.rel.ro 77000 77000 0 0.0
.dynamic 560 560 0 0.0
.got 4480 4480 0 0.0
.init 24 24 0 0.0
.init_array 360 360 0 0.0
.rodata 140036 140100 64 0.0
.text 1899152 1899552 400 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2353452 2353700 248 0.0
.bss 184652 184660 8 0.0
.data 5752 5752 0 0.0
.text 1316052 1316300 248 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1155987 1156187 200 0.0
bss 146716 146724 8 0.0
rodata 145956 146012 56 0.0
text 788148 788300 152 0.0
p6 all-clusters-app default (read/write) 2492976 2493176 200 0.0
.bss 118072 118080 8 0.0
.data 2632 2632 0 0.0
.text 1451240 1451440 200 0.0
light-app default (read/write) 2396376 2396592 216 0.0
.bss 111544 111552 8 0.0
.data 2488 2488 0 0.0
.text 1354640 1354856 216 0.0
lock-app default (read/write) 2359928 2360128 200 0.0
.bss 111288 111296 8 0.0
.data 2448 2448 0 0.0
.text 1318192 1318392 200 0.0
telink lighting-app tlsr9518adk80d (read/write) 895830 896074 244 0.0
bss 87424 87432 8 0.0
noinit 37160 37160 0 0.0
text 633404 633570 166 0.0

src/app/InteractionModelEngine.h Show resolved Hide resolved
src/app/ReadHandler.cpp Outdated Show resolved Hide resolved
src/app/ReadHandler.cpp Show resolved Hide resolved
src/app/ReadHandler.cpp Outdated Show resolved Hide resolved
src/app/ReadHandler.h Outdated Show resolved Hide resolved
src/app/ReadHandler.h Outdated Show resolved Hide resolved
src/app/ReadHandler.h Outdated Show resolved Hide resolved
src/app/ReadHandler.h Outdated Show resolved Hide resolved
src/app/ReadHandler.h Outdated Show resolved Hide resolved
src/controller/tests/data_model/TestRead.cpp Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Mar 25, 2022

PR #16517: Size comparison from 0fe4757 to 152f28c

Increases (25 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 0fe4757 152f28c change % change
cyw30739 light cyw930739m2evb_01 (read/write) 604482 604714 232 0.0
.app_xip_area 511652 511876 224 0.0
.bss 75576 75584 8 0.0
lock cyw930739m2evb_01 (read/write) 562270 562510 240 0.0
.app_xip_area 470968 471200 232 0.0
.bss 74080 74088 8 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 574618 574778 160 0.0
.app_xip_area 473668 473820 152 0.0
.bss 83408 83416 8 0.0
efr32 lighting-app BRD4161A (read only) 925488 925648 160 0.0
(read/write) 128688 128696 8 0.0
.bss 126688 126696 8 0.0
.text 925480 925640 160 0.0
BRD4161A+rpc (read only) 954304 954472 168 0.0
(read/write) 144640 144648 8 0.0
.bss 142464 142472 8 0.0
.text 954296 954464 168 0.0
window-app BRD4161A (read only) 854900 855076 176 0.0
(read/write) 126648 126656 8 0.0
.bss 124776 124784 8 0.0
.text 854892 855068 176 0.0
esp32 all-clusters-app c3devkit (read only) 965630 965752 122 0.0
(read/write) 1394162 1394202 40 0.0
.dram0.bss 61992 62000 8 0.0
.flash.rodata 199032 199072 40 0.0
.flash.text 965630 965752 122 0.0
m5stack (read only) 1022107 1022231 124 0.0
(read/write) 461908 461964 56 0.0
.dram0.bss 67520 67528 8 0.0
.flash.rodata 228528 228576 48 0.0
.flash.text 1016723 1016847 124 0.0
k32w light k32w061+release (read/write) 702984 703216 232 0.0
.bss 77568 77576 8 0.0
.text 617740 617964 224 0.0
lock k32w061+release (read/write) 702068 702316 248 0.0
.bss 77544 77552 8 0.0
.text 616808 617048 240 0.0
linux all-clusters-app debug (read only) 2487873 2487929 56 0.0
(read/write) 143344 143376 32 0.0
.data.rel.ro 78920 78952 32 0.0
.text 2111922 2111986 64 0.0
bridge-app debug+rpc (read only) 1760133 1760349 216 0.0
(read/write) 89552 89584 32 0.0
.data.rel.ro 37936 37968 32 0.1
.rodata 144268 144332 64 0.0
.text 1500629 1500709 80 0.0
door-lock-app debug (read only) 2012145 2012313 168 0.0
(read/write) 116896 116928 32 0.0
.data.rel.ro 62840 62872 32 0.1
.rodata 180956 180988 32 0.0
.text 1681506 1681570 64 0.0
lighting-app debug+rpc (read only) 2185993 2186121 128 0.0
(read/write) 123888 123920 32 0.0
.data.rel.ro 67928 67944 16 0.0
.text 1851954 1852034 80 0.0
ota-provider-app debug (read only) 1953337 1953521 184 0.0
(read/write) 112688 112720 32 0.0
.data.rel.ro 58184 58216 32 0.1
.rodata 166699 166731 32 0.0
.text 1634898 1634978 80 0.0
ota-requestor-app debug (read only) 1980929 1981113 184 0.0
(read/write) 115912 115944 32 0.0
.data.rel.ro 60440 60472 32 0.1
.rodata 162820 162852 32 0.0
.text 1665362 1665442 80 0.0
shell debug (read only) 2436633 2436737 104 0.0
.data.rel.ro 73568 73592 24 0.0
.text 2070082 2070162 80 0.0
thermostat-no-ble arm64 (read/write) 148385 148433 48 0.0
.bss 62833 62849 16 0.0
.data.rel.ro 77000 77024 24 0.0
tv-app debug (read only) 2682961 2683145 184 0.0
(read/write) 247552 247584 32 0.0
.data.rel.ro 74048 74064 16 0.0
.rodata 205611 205643 32 0.0
.text 2302722 2302802 80 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2354708 2354964 256 0.0
.bss 184572 184580 8 0.0
.text 1317308 1317564 256 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1140927 1141143 216 0.0
bss 142500 142508 8 0.0
rodata 142040 142080 40 0.0
text 781512 781692 180 0.0
p6 all-clusters-app default (read/write) 2496728 2496872 144 0.0
.bss 117992 118000 8 0.0
.text 1454992 1455136 144 0.0
light-app default (read/write) 2399104 2399264 160 0.0
.bss 111464 111472 8 0.0
.text 1357368 1357528 160 0.0
lock-app default (read/write) 2362632 2362800 168 0.0
.bss 111208 111216 8 0.0
.text 1320896 1321064 168 0.0
telink lighting-app tlsr9518adk80d (read/write) 897470 897726 256 0.0
bss 87356 87364 8 0.0
text 634874 635058 184 0.0
Decreases (4 builds for linux)
platform target config section 0fe4757 152f28c change % change
linux all-clusters-app debug .rodata 212229 212197 -32 -0.0
chip-tool debug (read only) 10207085 10181709 -25376 -0.2
(read/write) 356264 355688 -576 -0.2
.data.rel.ro 326600 326024 -576 -0.2
.rodata 520213 518581 -1632 -0.3
.text 8901141 8878645 -22496 -0.3
chip-tool-ipv6only arm64 (read only) 9828060 9812492 -15568 -0.2
(read/write) 474513 473745 -768 -0.2
.data.rel.ro 373280 372680 -600 -0.2
.got 55512 55352 -160 -0.3
.rodata 495380 493972 -1408 -0.3
.text 8277684 8265284 -12400 -0.1
thermostat-no-ble arm64 (read only) 2269668 2269588 -80 -0.0
.rodata 139716 139700 -16 -0.0
.text 1906544 1906448 -96 -0.0
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 0fe4757 152f28c change % change
cyw30739 light cyw930739m2evb_01 (read/write) 604482 604714 232 0.0
.app_xip_area 511652 511876 224 0.0
.bss 75576 75584 8 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 562270 562510 240 0.0
.app_xip_area 470968 471200 232 0.0
.bss 74080 74088 8 0.0
.data 568 568 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 574618 574778 160 0.0
.app_xip_area 473668 473820 152 0.0
.bss 83408 83416 8 0.0
.data 508 508 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 925488 925648 160 0.0
(read/write) 128688 128696 8 0.0
.bss 126688 126696 8 0.0
.data 1996 1996 0 0.0
.text 925480 925640 160 0.0
BRD4161A+rpc (read only) 954304 954472 168 0.0
(read/write) 144640 144648 8 0.0
.bss 142464 142472 8 0.0
.data 2176 2176 0 0.0
.text 954296 954464 168 0.0
window-app BRD4161A (read only) 854900 855076 176 0.0
(read/write) 126648 126656 8 0.0
.bss 124776 124784 8 0.0
.data 1872 1872 0 0.0
.text 854892 855068 176 0.0
esp32 all-clusters-app c3devkit (read only) 965630 965752 122 0.0
(read/write) 1394162 1394202 40 0.0
.dram0.bss 61992 62000 8 0.0
.dram0.data 14212 14212 0 0.0
.flash.rodata 199032 199072 40 0.0
.flash.text 965630 965752 122 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1022107 1022231 124 0.0
(read/write) 461908 461964 56 0.0
.dram0.bss 67520 67528 8 0.0
.dram0.data 34024 34024 0 0.0
.flash.rodata 228528 228576 48 0.0
.flash.text 1016723 1016847 124 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 702984 703216 232 0.0
.bss 77568 77576 8 0.0
.data 1876 1876 0 0.0
.text 617740 617964 224 0.0
lock k32w061+release (read/write) 702068 702316 248 0.0
.bss 77544 77552 8 0.0
.data 1916 1916 0 0.0
.text 616808 617048 240 0.0
linux all-clusters-app debug (read only) 2487873 2487929 56 0.0
(read/write) 143344 143376 32 0.0
.bss 57408 57408 0 0.0
.data 1280 1280 0 0.0
.data.rel.ro 78920 78952 32 0.0
.dynamic 592 592 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 936 936 0 0.0
.rodata 212229 212197 -32 -0.0
.text 2111922 2111986 64 0.0
bridge-app debug+rpc (read only) 1760133 1760349 216 0.0
(read/write) 89552 89584 32 0.0
.bss 44552 44552 0 0.0
.data 1984 1984 0 0.0
.data.rel.ro 37936 37968 32 0.1
.dynamic 592 592 0 0.0
.got 3920 3920 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 144268 144332 64 0.0
.text 1500629 1500709 80 0.0
chip-tool debug (read only) 10207085 10181709 -25376 -0.2
(read/write) 356264 355688 -576 -0.2
.bss 22496 22496 0 0.0
.data 1072 1072 0 0.0
.data.rel.ro 326600 326024 -576 -0.2
.dynamic 608 608 0 0.0
.got 4816 4816 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 520213 518581 -1632 -0.3
.text 8901141 8878645 -22496 -0.3
chip-tool-ipv6only arm64 (read only) 9828060 9812492 -15568 -0.2
(read/write) 474513 473745 -768 -0.2
.bss 40769 40769 0 0.0
.data 1144 1144 0 0.0
.data.rel.ro 373280 372680 -600 -0.2
.dynamic 560 560 0 0.0
.got 55512 55352 -160 -0.3
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 495380 493972 -1408 -0.3
.text 8277684 8265284 -12400 -0.1
door-lock-app debug (read only) 2012145 2012313 168 0.0
(read/write) 116896 116928 32 0.0
.bss 47680 47680 0 0.0
.data 992 992 0 0.0
.data.rel.ro 62840 62872 32 0.1
.dynamic 592 592 0 0.0
.got 4120 4120 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 180956 180988 32 0.0
.text 1681506 1681570 64 0.0
lighting-app debug+rpc (read only) 2185993 2186121 128 0.0
(read/write) 123888 123920 32 0.0
.bss 48960 48960 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 67928 67944 16 0.0
.dynamic 608 608 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 174972 174972 0 0.0
.text 1851954 1852034 80 0.0
ota-provider-app debug (read only) 1953337 1953521 184 0.0
(read/write) 112688 112720 32 0.0
.bss 47616 47616 0 0.0
.data 1256 1256 0 0.0
.data.rel.ro 58184 58216 32 0.1
.dynamic 608 608 0 0.0
.got 4376 4376 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 166699 166731 32 0.0
.text 1634898 1634978 80 0.0
ota-requestor-app debug (read only) 1980929 1981113 184 0.0
(read/write) 115912 115944 32 0.0
.bss 48544 48544 0 0.0
.data 1480 1480 0 0.0
.data.rel.ro 60440 60472 32 0.1
.dynamic 592 592 0 0.0
.got 4184 4184 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 162820 162852 32 0.0
.text 1665362 1665442 80 0.0
shell debug (read only) 2436633 2436737 104 0.0
(read/write) 147400 147400 0 0.0
.bss 67336 67336 0 0.0
.data 800 800 0 0.0
.data.rel.ro 73568 73592 24 0.0
.dynamic 592 592 0 0.0
.got 4152 4152 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 209682 209682 0 0.0
.text 2070082 2070162 80 0.0
thermostat-no-ble arm64 (read only) 2269668 2269588 -80 -0.0
(read/write) 148385 148433 48 0.0
.bss 62833 62849 16 0.0
.data 1040 1040 0 0.0
.data.rel.ro 77000 77024 24 0.0
.dynamic 560 560 0 0.0
.got 4504 4504 0 0.0
.init 24 24 0 0.0
.init_array 360 360 0 0.0
.rodata 139716 139700 -16 -0.0
.text 1906544 1906448 -96 -0.0
tv-app debug (read only) 2682961 2683145 184 0.0
(read/write) 247552 247584 32 0.0
.bss 164320 164320 0 0.0
.data 3136 3136 0 0.0
.data.rel.ro 74048 74064 16 0.0
.dynamic 592 592 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 205611 205643 32 0.0
.text 2302722 2302802 80 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2354708 2354964 256 0.0
.bss 184572 184580 8 0.0
.data 5760 5760 0 0.0
.text 1317308 1317564 256 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1140927 1141143 216 0.0
bss 142500 142508 8 0.0
rodata 142040 142080 40 0.0
text 781512 781692 180 0.0
p6 all-clusters-app default (read/write) 2496728 2496872 144 0.0
.bss 117992 118000 8 0.0
.data 2640 2640 0 0.0
.text 1454992 1455136 144 0.0
light-app default (read/write) 2399104 2399264 160 0.0
.bss 111464 111472 8 0.0
.data 2496 2496 0 0.0
.text 1357368 1357528 160 0.0
lock-app default (read/write) 2362632 2362800 168 0.0
.bss 111208 111216 8 0.0
.data 2456 2456 0 0.0
.text 1320896 1321064 168 0.0
telink lighting-app tlsr9518adk80d (read/write) 897470 897726 256 0.0
bss 87356 87364 8 0.0
noinit 37160 37160 0 0.0
text 634874 635058 184 0.0

src/app/reporting/Engine.cpp Outdated Show resolved Hide resolved
src/app/ReadHandler.h Outdated Show resolved Hide resolved
@boring-cyborg boring-cyborg bot added the lib label Mar 28, 2022
@github-actions
Copy link

github-actions bot commented Mar 28, 2022

PR #16517: Size comparison from 125e73c to 1ad2d83

Increases (25 builds for cyw30739, efr32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 125e73c 1ad2d83 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 605426 605650 224 0.0
.app_xip_area 512356 512580 224 0.0
lock cyw930739m2evb_01 (read/write) 563238 563470 232 0.0
.app_xip_area 471696 471928 232 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 575498 575650 152 0.0
.app_xip_area 474308 474460 152 0.0
efr32 lighting-app BRD4161A (read only) 926600 926848 248 0.0
.text 926592 926840 248 0.0
BRD4161A+rpc (read only) 955416 955648 232 0.0
.text 955408 955640 232 0.0
window-app BRD4161A (read only) 856004 856252 248 0.0
.text 855996 856244 248 0.0
k32w light k32w061+release (read/write) 704272 704496 224 0.0
.text 618788 619012 224 0.0
lock k32w061+release (read/write) 703364 703588 224 0.0
.text 617864 618088 224 0.0
linux all-clusters-app debug (read only) 2525993 2526689 696 0.0
(read/write) 143352 143384 32 0.0
.data.rel.ro 78920 78952 32 0.0
.rodata 216549 216613 64 0.0
.text 2145618 2146178 560 0.0
bridge-app debug+rpc (read only) 1765325 1766005 680 0.0
(read/write) 89520 89552 32 0.0
.data.rel.ro 37936 37968 32 0.1
.rodata 144684 144748 64 0.0
.text 1505285 1505829 544 0.0
chip-tool debug (read only) 10183973 10186653 2680 0.0
.data.rel.ro 326008 326024 16 0.0
.rodata 518805 518869 64 0.0
.text 8880629 8883173 2544 0.0
chip-tool-ipv6only arm64 (read only) 9815548 9818188 2640 0.0
(read/write) 473697 473729 32 0.0
.bss 40737 40753 16 0.0
.data.rel.ro 372656 372680 24 0.0
.rodata 494212 494260 48 0.0
.text 8268164 8270692 2528 0.0
door-lock-app debug (read only) 2017153 2017833 680 0.0
(read/write) 116896 116928 32 0.0
.data.rel.ro 62840 62872 32 0.1
.rodata 181276 181340 64 0.0
.text 1686066 1686610 544 0.0
lighting-app debug+rpc (read only) 2191489 2192185 696 0.0
.data.rel.ro 67928 67944 16 0.0
.rodata 175356 175420 64 0.0
.text 1856962 1857522 560 0.0
ota-provider-app debug (read only) 1957977 1958673 696 0.0
(read/write) 112688 112720 32 0.0
.data.rel.ro 58184 58216 32 0.1
.rodata 167115 167179 64 0.0
.text 1638994 1639554 560 0.0
ota-requestor-app debug (read only) 1985569 1986265 696 0.0
(read/write) 115912 115944 32 0.0
.data.rel.ro 60440 60472 32 0.1
.rodata 163236 163300 64 0.0
.text 1669458 1670018 560 0.0
shell debug (read only) 2441625 2442321 696 0.0
(read/write) 147368 147400 32 0.0
.data.rel.ro 73568 73592 24 0.0
.rodata 210034 210098 64 0.0
.text 2074642 2075202 560 0.0
thermostat-no-ble arm64 (read only) 2275156 2275748 592 0.0
(read/write) 148369 148401 32 0.0
.data.rel.ro 77000 77024 24 0.0
.rodata 140036 140084 48 0.0
.text 1911760 1912224 464 0.0
tv-app debug (read only) 2688417 2689097 680 0.0
(read/write) 247520 247552 32 0.0
.data.rel.ro 74048 74064 16 0.0
.rodata 206059 206123 64 0.0
.text 2307730 2308274 544 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2355644 2355900 256 0.0
.text 1318244 1318500 256 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1143379 1143607 228 0.0
rodata 142364 142432 68 0.0
text 783240 783404 164 0.0
p6 all-clusters-app default (read/write) 2498384 2498632 248 0.0
.text 1456648 1456896 248 0.0
light-app default (read/write) 2400816 2401064 248 0.0
.text 1359080 1359328 248 0.0
lock-app default (read/write) 2364352 2364600 248 0.0
.text 1322616 1322864 248 0.0
telink lighting-app tlsr9518adk80d (read/write) 898750 898994 244 0.0
text 635626 635808 182 0.0
Full report (25 builds for cyw30739, efr32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 125e73c 1ad2d83 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 605426 605650 224 0.0
.app_xip_area 512356 512580 224 0.0
.bss 75816 75816 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 563238 563470 232 0.0
.app_xip_area 471696 471928 232 0.0
.bss 74320 74320 0 0.0
.data 568 568 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 575498 575650 152 0.0
.app_xip_area 474308 474460 152 0.0
.bss 83648 83648 0 0.0
.data 508 508 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 926600 926848 248 0.0
(read/write) 128952 128952 0 0.0
.bss 126952 126952 0 0.0
.data 1996 1996 0 0.0
.text 926592 926840 248 0.0
BRD4161A+rpc (read only) 955416 955648 232 0.0
(read/write) 144904 144904 0 0.0
.bss 142728 142728 0 0.0
.data 2176 2176 0 0.0
.text 955408 955640 232 0.0
window-app BRD4161A (read only) 856004 856252 248 0.0
(read/write) 126912 126912 0 0.0
.bss 125040 125040 0 0.0
.data 1872 1872 0 0.0
.text 855996 856244 248 0.0
k32w light k32w061+release (read/write) 704272 704496 224 0.0
.bss 77808 77808 0 0.0
.data 1876 1876 0 0.0
.text 618788 619012 224 0.0
lock k32w061+release (read/write) 703364 703588 224 0.0
.bss 77784 77784 0 0.0
.data 1916 1916 0 0.0
.text 617864 618088 224 0.0
linux all-clusters-app debug (read only) 2525993 2526689 696 0.0
(read/write) 143352 143384 32 0.0
.bss 57408 57408 0 0.0
.data 1280 1280 0 0.0
.data.rel.ro 78920 78952 32 0.0
.dynamic 592 592 0 0.0
.got 4184 4184 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 216549 216613 64 0.0
.text 2145618 2146178 560 0.0
bridge-app debug+rpc (read only) 1765325 1766005 680 0.0
(read/write) 89520 89552 32 0.0
.bss 44520 44520 0 0.0
.data 1984 1984 0 0.0
.data.rel.ro 37936 37968 32 0.1
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 144684 144748 64 0.0
.text 1505285 1505829 544 0.0
chip-tool debug (read only) 10183973 10186653 2680 0.0
(read/write) 355656 355656 0 0.0
.bss 22464 22464 0 0.0
.data 1072 1072 0 0.0
.data.rel.ro 326008 326024 16 0.0
.dynamic 608 608 0 0.0
.got 4824 4824 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 518805 518869 64 0.0
.text 8880629 8883173 2544 0.0
chip-tool-ipv6only arm64 (read only) 9815548 9818188 2640 0.0
(read/write) 473697 473729 32 0.0
.bss 40737 40753 16 0.0
.data 1144 1144 0 0.0
.data.rel.ro 372656 372680 24 0.0
.dynamic 560 560 0 0.0
.got 55352 55352 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 494212 494260 48 0.0
.text 8268164 8270692 2528 0.0
door-lock-app debug (read only) 2017153 2017833 680 0.0
(read/write) 116896 116928 32 0.0
.bss 47648 47648 0 0.0
.data 992 992 0 0.0
.data.rel.ro 62840 62872 32 0.1
.dynamic 592 592 0 0.0
.got 4128 4128 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 181276 181340 64 0.0
.text 1686066 1686610 544 0.0
lighting-app debug+rpc (read only) 2191489 2192185 696 0.0
(read/write) 123888 123888 0 0.0
.bss 48928 48928 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 67928 67944 16 0.0
.dynamic 608 608 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 175356 175420 64 0.0
.text 1856962 1857522 560 0.0
ota-provider-app debug (read only) 1957977 1958673 696 0.0
(read/write) 112688 112720 32 0.0
.bss 47584 47584 0 0.0
.data 1256 1256 0 0.0
.data.rel.ro 58184 58216 32 0.1
.dynamic 608 608 0 0.0
.got 4384 4384 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 167115 167179 64 0.0
.text 1638994 1639554 560 0.0
ota-requestor-app debug (read only) 1985569 1986265 696 0.0
(read/write) 115912 115944 32 0.0
.bss 48512 48512 0 0.0
.data 1480 1480 0 0.0
.data.rel.ro 60440 60472 32 0.1
.dynamic 592 592 0 0.0
.got 4192 4192 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 163236 163300 64 0.0
.text 1669458 1670018 560 0.0
shell debug (read only) 2441625 2442321 696 0.0
(read/write) 147368 147400 32 0.0
.bss 67304 67304 0 0.0
.data 800 800 0 0.0
.data.rel.ro 73568 73592 24 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 210034 210098 64 0.0
.text 2074642 2075202 560 0.0
thermostat-no-ble arm64 (read only) 2275156 2275748 592 0.0
(read/write) 148369 148401 32 0.0
.bss 62817 62817 0 0.0
.data 1040 1040 0 0.0
.data.rel.ro 77000 77024 24 0.0
.dynamic 560 560 0 0.0
.got 4504 4504 0 0.0
.init 24 24 0 0.0
.init_array 360 360 0 0.0
.rodata 140036 140084 48 0.0
.text 1911760 1912224 464 0.0
tv-app debug (read only) 2688417 2689097 680 0.0
(read/write) 247520 247552 32 0.0
.bss 164288 164288 0 0.0
.data 3136 3136 0 0.0
.data.rel.ro 74048 74064 16 0.0
.dynamic 592 592 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 206059 206123 64 0.0
.text 2307730 2308274 544 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2355644 2355900 256 0.0
.bss 184860 184860 0 0.0
.data 5760 5760 0 0.0
.text 1318244 1318500 256 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1143379 1143607 228 0.0
bss 142892 142892 0 0.0
rodata 142364 142432 68 0.0
text 783240 783404 164 0.0
p6 all-clusters-app default (read/write) 2498384 2498632 248 0.0
.bss 118280 118280 0 0.0
.data 2640 2640 0 0.0
.text 1456648 1456896 248 0.0
light-app default (read/write) 2400816 2401064 248 0.0
.bss 111752 111752 0 0.0
.data 2496 2496 0 0.0
.text 1359080 1359328 248 0.0
lock-app default (read/write) 2364352 2364600 248 0.0
.bss 111496 111496 0 0.0
.data 2456 2456 0 0.0
.text 1322616 1322864 248 0.0
telink lighting-app tlsr9518adk80d (read/write) 898750 898994 244 0.0
bss 87596 87596 0 0.0
noinit 37160 37160 0 0.0
text 635626 635808 182 0.0

src/app/ReadHandler.h Show resolved Hide resolved
@mrjerryjohns mrjerryjohns merged commit b697b29 into project-chip:master Mar 30, 2022
rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this pull request Mar 31, 2022
* Add Application Callback for Subscription Handling

Adds a new ReadHandler::ApplicationCallback that permits notifying the
application of notable happenings on subscriptions as well as giving
them a chance to alter the min/max intervals setup as part of
subscriptions.

Tests:
- Add some unit tests to TestRead to validate the positive/negative behaviors added.

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Review feedback.

* Removing a bunch of accidentally added files...

Co-authored-by: Boris Zbarsky <[email protected]>
andrei-menzopol pushed a commit to andrei-menzopol/connectedhomeip that referenced this pull request Apr 14, 2022
* Add Application Callback for Subscription Handling

Adds a new ReadHandler::ApplicationCallback that permits notifying the
application of notable happenings on subscriptions as well as giving
them a chance to alter the min/max intervals setup as part of
subscriptions.

Tests:
- Add some unit tests to TestRead to validate the positive/negative behaviors added.

* Apply suggestions from code review

Co-authored-by: Boris Zbarsky <[email protected]>

* Review feedback.

* Removing a bunch of accidentally added files...

Co-authored-by: Boris Zbarsky <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to permit applications to provide final input on negotiated subscription intervals
4 participants