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

Replace and remove weakly-typed System::Clock code #11238

Merged
merged 5 commits into from
Nov 2, 2021

Conversation

kpschoedel
Copy link
Contributor

Problem

Previous PRs added strong types to System::Clock and converted many
uses, but a few remain.

Change overview

Convert the remaining uses of the weak types (MonotonicMilliseconds
and MonotonicMicroseconds), and remove them from System::Clock.

Fixes #10062 Some operations on System::Clock types are not safe

There are some remaining uses of Clock-derived values as plain
integers; these can be found for later cleanup by the use of .count().

Testing

CI; no changes to functionality.
Converted TestPlatformTime.

#### Problem

Previous PRs added strong types to `System::Clock` and converted many
uses, but a few remain.

#### Change overview

Convert the remaining uses of the weak types (`MonotonicMilliseconds`
and `MonotonicMicroseconds`), and remove them from `System::Clock`.

Fixes project-chip#10062 Some operations on System::Clock types are not safe

There are some remaining uses of `Clock`-derived values as plain
integers; these can be found for later cleanup by the use of `.count()`.

#### Testing

CI; no changes to functionality.
Converted `TestPlatformTime`.
@github-actions
Copy link

github-actions bot commented Oct 29, 2021

PR #11238: Size comparison from 345723d to 2e14b9c

Increases (8 builds for linux)
platform target config section 345723d 2e14b9c change % change
linux all-clusters-app debug (read only) 1666489 1666745 256 0.0
.text 1397282 1397538 256 0.0
bridge-app debug+rpc (read only) 1281957 1282229 272 0.0
.text 1076693 1076965 272 0.0
chip-tool debug (read only) 4288501 4288757 256 0.0
.text 3808053 3808309 256 0.0
lighting-app debug+rpc (read only) 1540865 1541137 272 0.0
.text 1280370 1280642 272 0.0
ota-provider-app debug (read only) 1239033 1239305 272 0.0
.text 1032498 1032770 272 0.0
ota-requestor-app debug (read only) 1302033 1302305 272 0.0
.text 1077170 1077442 272 0.0
shell debug (read only) 786145 786577 432 0.1
.text 607186 607618 432 0.1
tv-app debug (read only) 1773337 1773593 256 0.0
.text 1477682 1477938 256 0.0
Decreases (25 builds for efr32, esp32, k32w, mbed, nrfconnect, p6, qpg, telink)
platform target config section 345723d 2e14b9c change % change
efr32 lighting-app BRD4161A (read only) 701348 701300 -48 -0.0
.text 701340 701292 -48 -0.0
BRD4161A+rpc (read only) 727300 727252 -48 -0.0
.text 727292 727244 -48 -0.0
lock-app BRD4161A (read only) 680576 680528 -48 -0.0
.text 680568 680520 -48 -0.0
window-app BRD4161A (read only) 681488 681440 -48 -0.0
.text 681480 681432 -48 -0.0
esp32 all-clusters-app c3devkit (read only) 877674 877606 -68 -0.0
.flash.text 877674 877606 -68 -0.0
m5stack (read only) 908859 908855 -4 -0.0
.flash.text 908859 908855 -4 -0.0
k32w lighting-app k32w061+se05x+release (read/write) 699128 699064 -64 -0.0
.text 613708 613644 -64 -0.0
lock-app k32w061+debug (read/write) 591432 591368 -64 -0.0
.text 515548 515484 -64 -0.0
shell k32w061+debug (read/write) 424988 424972 -16 -0.0
.text 359332 359316 -16 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2291992 2291928 -64 -0.0
.text 1254592 1254528 -64 -0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2274336 2274272 -64 -0.0
.text 1236936 1236872 -64 -0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2252056 2251992 -64 -0.0
.text 1214656 1214592 -64 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861263 861215 -48 -0.0
text 577612 577552 -60 -0.0
nrf52840dk_nrf52840+rpc (read/write) 822091 822027 -64 -0.0
text 550784 550724 -60 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786306 786242 -64 -0.0
text 507080 507020 -60 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 837971 837907 -64 -0.0
text 559092 559032 -60 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763266 763202 -64 -0.0
text 488652 488592 -60 -0.0
pump-app nrf52840dk_nrf52840 (read/write) 842643 842579 -64 -0.0
text 562300 562240 -60 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 837947 837899 -48 -0.0
text 558932 558872 -60 -0.0
shell nrf52840dk_nrf52840 (read/write) 776179 776147 -32 -0.0
text 519936 519912 -24 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691202 691166 -36 -0.0
rodata 67180 67176 -4 -0.0
text 440548 440516 -32 -0.0
p6 lock-app default (read/write) 2167872 2167824 -48 -0.0
.text 1126136 1126088 -48 -0.0
qpg lighting-app qpg6100+debug (read only) 490500 490436 -64 -0.0
.text 485180 485116 -64 -0.0
lock-app qpg6100+debug (read only) 466840 466776 -64 -0.0
.text 461520 461456 -64 -0.0
telink lighting-app tlsr9518adk80d (read/write) 662890 662842 -48 -0.0
text 458036 457992 -44 -0.0
Full report (37 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 345723d 2e14b9c change % change
efr32 lighting-app BRD4161A (read only) 701348 701300 -48 -0.0
(read/write) 113876 113876 0 0.0
.bss 112124 112124 0 0.0
.data 1752 1752 0 0.0
.text 701340 701292 -48 -0.0
BRD4161A+rpc (read only) 727300 727252 -48 -0.0
(read/write) 131096 131096 0 0.0
.bss 129244 129244 0 0.0
.data 1852 1852 0 0.0
.text 727292 727244 -48 -0.0
lock-app BRD4161A (read only) 680576 680528 -48 -0.0
(read/write) 111692 111692 0 0.0
.bss 109980 109980 0 0.0
.data 1712 1712 0 0.0
.text 680568 680520 -48 -0.0
window-app BRD4161A (read only) 681488 681440 -48 -0.0
(read/write) 112020 112020 0 0.0
.bss 110300 110300 0 0.0
.data 1716 1716 0 0.0
.text 681480 681432 -48 -0.0
esp32 all-clusters-app c3devkit (read only) 877674 877606 -68 -0.0
(read/write) 1307072 1307072 0 0.0
.dram0.bss 58296 58296 0 0.0
.dram0.data 16448 16448 0 0.0
.flash.rodata 199088 199088 0 0.0
.flash.text 877674 877606 -68 -0.0
.iram0.text 57554 57554 0 0.0
m5stack (read only) 908859 908855 -4 -0.0
(read/write) 426852 426852 0 0.0
.dram0.bss 60792 60792 0 0.0
.dram0.data 32084 32084 0 0.0
.flash.rodata 207812 207812 0 0.0
.flash.text 908859 908855 -4 -0.0
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699128 699064 -64 -0.0
.bss 77720 77720 0 0.0
.data 1900 1900 0 0.0
.text 613708 613644 -64 -0.0
lock-app k32w061+debug (read/write) 591432 591368 -64 -0.0
.bss 68220 68220 0 0.0
.data 1864 1864 0 0.0
.text 515548 515484 -64 -0.0
shell k32w061+debug (read/write) 424988 424972 -16 -0.0
.bss 63280 63280 0 0.0
.data 672 672 0 0.0
.text 359332 359316 -16 -0.0
linux all-clusters-app debug (read only) 1666489 1666745 256 0.0
(read/write) 118080 118080 0 0.0
.bss 50320 50320 0 0.0
.data 978 978 0 0.0
.data.rel.ro 61536 61536 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 137013 137013 0 0.0
.text 1397282 1397538 256 0.0
bridge-app debug+rpc (read only) 1281957 1282229 272 0.0
(read/write) 84136 84136 0 0.0
.bss 50800 50800 0 0.0
.data 976 976 0 0.0
.data.rel.ro 27368 27368 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 110020 110020 0 0.0
.text 1076693 1076965 272 0.0
chip-tool debug (read only) 4288501 4288757 256 0.0
(read/write) 122752 122752 0 0.0
.bss 17680 17680 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 98080 98080 0 0.0
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 216304 216304 0 0.0
.text 3808053 3808309 256 0.0
lighting-app debug+rpc (read only) 1540865 1541137 272 0.0
(read/write) 101008 101008 0 0.0
.bss 40184 40184 0 0.0
.data 1106 1106 0 0.0
.data.rel.ro 54448 54448 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 128113 128113 0 0.0
.text 1280370 1280642 272 0.0
ota-provider-app debug (read only) 1239033 1239305 272 0.0
(read/write) 67104 67104 0 0.0
.bss 36640 36640 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24616 24616 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110408 110408 0 0.0
.text 1032498 1032770 272 0.0
ota-requestor-app debug (read only) 1302033 1302305 272 0.0
(read/write) 76360 76360 0 0.0
.bss 44896 44896 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25528 25528 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 127072 127072 0 0.0
.text 1077170 1077442 272 0.0
shell debug (read only) 786145 786577 432 0.1
(read/write) 57664 57664 0 0.0
.bss 16072 16072 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36848 36848 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77423 77423 0 0.0
.text 607186 607618 432 0.1
tv-app debug (read only) 1773337 1773593 256 0.0
(read/write) 288600 288600 0 0.0
.bss 222224 222224 0 0.0
.data 2032 2032 0 0.0
.data.rel.ro 58704 58704 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 153464 153464 0 0.0
.text 1477682 1477938 256 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291992 2291928 -64 -0.0
.bss 179668 179668 0 0.0
.data 5192 5192 0 0.0
.heap 851584 851584 0 0.0
.text 1254592 1254528 -64 -0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2274336 2274272 -64 -0.0
.bss 171868 171868 0 0.0
.data 5568 5568 0 0.0
.heap 859008 859008 0 0.0
.text 1236936 1236872 -64 -0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2252056 2251992 -64 -0.0
.bss 170772 170772 0 0.0
.data 5552 5552 0 0.0
.heap 860120 860120 0 0.0
.text 1214656 1214592 -64 -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) 2048656 2048656 0 0.0
.bss 156232 156232 0 0.0
.data 4968 4968 0 0.0
.heap 875248 875248 0 0.0
.text 1011256 1011256 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861263 861215 -48 -0.0
bss 111180 111180 0 0.0
rodata 96856 96856 0 0.0
text 577612 577552 -60 -0.0
nrf52840dk_nrf52840+rpc (read/write) 822091 822027 -64 -0.0
bss 107424 107424 0 0.0
rodata 87636 87636 0 0.0
text 550784 550724 -60 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786306 786242 -64 -0.0
bss 112556 112556 0 0.0
rodata 92100 92100 0 0.0
text 507080 507020 -60 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 837971 837907 -64 -0.0
bss 110216 110216 0 0.0
rodata 93212 93212 0 0.0
text 559092 559032 -60 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763266 763202 -64 -0.0
bss 111628 111628 0 0.0
rodata 88516 88516 0 0.0
text 488652 488592 -60 -0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 842643 842579 -64 -0.0
bss 110352 110352 0 0.0
rodata 94460 94460 0 0.0
text 562300 562240 -60 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 837947 837899 -48 -0.0
bss 110252 110252 0 0.0
rodata 93236 93236 0 0.0
text 558932 558872 -60 -0.0
shell nrf52840dk_nrf52840 (read/write) 776179 776147 -32 -0.0
bss 109096 109096 0 0.0
rodata 72536 72536 0 0.0
text 519936 519912 -24 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691202 691166 -36 -0.0
bss 110080 110080 0 0.0
rodata 67180 67176 -4 -0.0
text 440548 440516 -32 -0.0
p6 lock-app default (read/write) 2167872 2167824 -48 -0.0
.bss 66216 66216 0 0.0
.data 2416 2416 0 0.0
.heap 964712 964712 0 0.0
.text 1126136 1126088 -48 -0.0
qpg lighting-app qpg6100+debug (read only) 490500 490436 -64 -0.0
(read/write) 114144 114144 0 0.0
.bss 50336 50336 0 0.0
.data 1000 1000 0 0.0
.text 485180 485116 -64 -0.0
lock-app qpg6100+debug (read only) 466840 466776 -64 -0.0
(read/write) 114140 114140 0 0.0
.bss 49288 49288 0 0.0
.data 956 956 0 0.0
.text 461520 461456 -64 -0.0
persistent-storage-app qpg6100+debug (read only) 155820 155820 0 0.0
(read/write) 114140 114140 0 0.0
.bss 27752 27752 0 0.0
.data 372 372 0 0.0
.text 150500 150500 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 662890 662842 -48 -0.0
bss 68992 68992 0 0.0
noinit 33216 33216 0 0.0
text 458036 457992 -44 -0.0

@github-actions
Copy link

github-actions bot commented Oct 30, 2021

PR #11238: Size comparison from 345723d to 0711988

Increases above 0.2%:

platform target config section 345723d 0711988 change % change
efr32 lighting-app BRD4161A (read only) 701348 736588 35240 5.0
(read/write) 113876 114476 600 0.5
.bss 112124 112724 600 0.5
.text 701340 736580 35240 5.0
lock-app BRD4161A (read only) 680576 715884 35308 5.2
(read/write) 111692 112292 600 0.5
.bss 109980 110580 600 0.5
.text 680568 715876 35308 5.2
window-app BRD4161A (read only) 681488 716756 35268 5.2
(read/write) 112020 112616 596 0.5
.bss 110300 110900 600 0.5
.text 681480 716748 35268 5.2
esp32 all-clusters-app c3devkit (read only) 877674 880494 2820 0.3
.dram0.bss 58296 58456 160 0.3
.flash.rodata 199088 199640 552 0.3
.flash.text 877674 880494 2820 0.3
m5stack (read only) 908859 911363 2504 0.3
.dram0.bss 60792 60952 160 0.3
.flash.rodata 207812 208344 532 0.3
.flash.text 908859 911363 2504 0.3
linux all-clusters-app debug (read only) 1666489 1687257 20768 1.2
(read/write) 118080 119024 944 0.8
.bss 50320 50640 320 0.6
.data 978 1010 32 3.3
.data.rel.ro 61536 62112 576 0.9
.init_array 520 536 16 3.1
.rodata 137013 138069 1056 0.8
.text 1397282 1416130 18848 1.3
chip-tool debug (read only) 4288501 4315181 26680 0.6
(read/write) 122752 123648 896 0.7
.data.rel.ro 98080 98928 848 0.9
.rodata 216304 217360 1056 0.5
.text 3808053 3831877 23824 0.6
mbed all-clusters-app CY8CPROTO_062_4343W+release .data 5192 5216 24 0.5
.text 1254592 1257488 2896 0.2
Increases (18 builds for efr32, esp32, linux, mbed, nrfconnect)
platform target config section 345723d 0711988 change % change
efr32 lighting-app BRD4161A (read only) 701348 736588 35240 5.0
(read/write) 113876 114476 600 0.5
.bss 112124 112724 600 0.5
.text 701340 736580 35240 5.0
lock-app BRD4161A (read only) 680576 715884 35308 5.2
(read/write) 111692 112292 600 0.5
.bss 109980 110580 600 0.5
.text 680568 715876 35308 5.2
window-app BRD4161A (read only) 681488 716756 35268 5.2
(read/write) 112020 112616 596 0.5
.bss 110300 110900 600 0.5
.text 681480 716748 35268 5.2
esp32 all-clusters-app c3devkit (read only) 877674 880494 2820 0.3
(read/write) 1307072 1307800 728 0.1
.dram0.bss 58296 58456 160 0.3
.dram0.data 16448 16464 16 0.1
.flash.rodata 199088 199640 552 0.3
.flash.text 877674 880494 2820 0.3
m5stack (read only) 908859 911363 2504 0.3
(read/write) 426852 427560 708 0.2
.dram0.bss 60792 60952 160 0.3
.dram0.data 32084 32100 16 0.0
.flash.rodata 207812 208344 532 0.3
.flash.text 908859 911363 2504 0.3
linux all-clusters-app debug (read only) 1666489 1687257 20768 1.2
(read/write) 118080 119024 944 0.8
.bss 50320 50640 320 0.6
.data 978 1010 32 3.3
.data.rel.ro 61536 62112 576 0.9
.init_array 520 536 16 3.1
.rodata 137013 138069 1056 0.8
.text 1397282 1416130 18848 1.3
bridge-app debug+rpc (read only) 1281957 1282229 272 0.0
.text 1076693 1076965 272 0.0
chip-tool debug (read only) 4288501 4315181 26680 0.6
(read/write) 122752 123648 896 0.7
.bss 17680 17712 32 0.2
.data.rel.ro 98080 98928 848 0.9
.rodata 216304 217360 1056 0.5
.text 3808053 3831877 23824 0.6
lighting-app debug+rpc (read only) 1540865 1541137 272 0.0
.text 1280370 1280642 272 0.0
ota-provider-app debug (read only) 1239033 1239305 272 0.0
.text 1032498 1032770 272 0.0
ota-requestor-app debug (read only) 1302033 1302305 272 0.0
.text 1077170 1077442 272 0.0
shell debug (read only) 786145 786577 432 0.1
.text 607186 607618 432 0.1
tv-app debug (read only) 1773337 1773593 256 0.0
.text 1477682 1477938 256 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2291992 2294888 2896 0.1
.bss 179668 179828 160 0.1
.data 5192 5216 24 0.5
.text 1254592 1257488 2896 0.2
nrfconnect lighting-app nrf52840dk_nrf52840 rodata 96856 96860 4 0.0
nrf52840dk_nrf52840+rpc rodata 87636 87640 4 0.0
lock-app nrf52840dk_nrf52840 rodata 93212 93216 4 0.0
nrf5340dk_nrf5340_cpuapp rodata 88516 88520 4 0.0
Decreases (20 builds for efr32, k32w, mbed, nrfconnect, p6, qpg, telink)
platform target config section 345723d 0711988 change % change
efr32 lighting-app BRD4161A+rpc (read only) 727300 724028 -3272 -0.4
(read/write) 131096 131080 -16 -0.0
.bss 129244 129228 -16 -0.0
.text 727292 724020 -3272 -0.4
k32w lighting-app k32w061+se05x+release (read/write) 699128 699064 -64 -0.0
.text 613708 613644 -64 -0.0
lock-app k32w061+debug (read/write) 591432 591368 -64 -0.0
.text 515548 515484 -64 -0.0
shell k32w061+debug (read/write) 424988 424972 -16 -0.0
.text 359332 359316 -16 -0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release .heap 851584 851400 -184 -0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2274336 2274272 -64 -0.0
.text 1236936 1236872 -64 -0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2252056 2251992 -64 -0.0
.text 1214656 1214592 -64 -0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861263 861219 -44 -0.0
text 577612 577552 -60 -0.0
nrf52840dk_nrf52840+rpc (read/write) 822091 822031 -60 -0.0
text 550784 550724 -60 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786306 786242 -64 -0.0
text 507080 507020 -60 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 837971 837911 -60 -0.0
text 559092 559032 -60 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763266 763206 -60 -0.0
text 488652 488592 -60 -0.0
pump-app nrf52840dk_nrf52840 (read/write) 842643 842579 -64 -0.0
text 562300 562240 -60 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 837947 837899 -48 -0.0
text 558932 558872 -60 -0.0
shell nrf52840dk_nrf52840 (read/write) 776179 776147 -32 -0.0
text 519936 519912 -24 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691202 691166 -36 -0.0
rodata 67180 67176 -4 -0.0
text 440548 440516 -32 -0.0
p6 lock-app default (read/write) 2167872 2167824 -48 -0.0
.text 1126136 1126088 -48 -0.0
qpg lighting-app qpg6100+debug (read only) 490500 490436 -64 -0.0
.text 485180 485116 -64 -0.0
lock-app qpg6100+debug (read only) 466840 466780 -60 -0.0
.text 461520 461460 -60 -0.0
telink lighting-app tlsr9518adk80d (read/write) 662890 662842 -48 -0.0
text 458036 457992 -44 -0.0
Full report (37 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 345723d 0711988 change % change
efr32 lighting-app BRD4161A (read only) 701348 736588 35240 5.0
(read/write) 113876 114476 600 0.5
.bss 112124 112724 600 0.5
.data 1752 1752 0 0.0
.text 701340 736580 35240 5.0
BRD4161A+rpc (read only) 727300 724028 -3272 -0.4
(read/write) 131096 131080 -16 -0.0
.bss 129244 129228 -16 -0.0
.data 1852 1852 0 0.0
.text 727292 724020 -3272 -0.4
lock-app BRD4161A (read only) 680576 715884 35308 5.2
(read/write) 111692 112292 600 0.5
.bss 109980 110580 600 0.5
.data 1712 1712 0 0.0
.text 680568 715876 35308 5.2
window-app BRD4161A (read only) 681488 716756 35268 5.2
(read/write) 112020 112616 596 0.5
.bss 110300 110900 600 0.5
.data 1716 1716 0 0.0
.text 681480 716748 35268 5.2
esp32 all-clusters-app c3devkit (read only) 877674 880494 2820 0.3
(read/write) 1307072 1307800 728 0.1
.dram0.bss 58296 58456 160 0.3
.dram0.data 16448 16464 16 0.1
.flash.rodata 199088 199640 552 0.3
.flash.text 877674 880494 2820 0.3
.iram0.text 57554 57554 0 0.0
m5stack (read only) 908859 911363 2504 0.3
(read/write) 426852 427560 708 0.2
.dram0.bss 60792 60952 160 0.3
.dram0.data 32084 32100 16 0.0
.flash.rodata 207812 208344 532 0.3
.flash.text 908859 911363 2504 0.3
.iram0.text 125115 125115 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 699128 699064 -64 -0.0
.bss 77720 77720 0 0.0
.data 1900 1900 0 0.0
.text 613708 613644 -64 -0.0
lock-app k32w061+debug (read/write) 591432 591368 -64 -0.0
.bss 68220 68220 0 0.0
.data 1864 1864 0 0.0
.text 515548 515484 -64 -0.0
shell k32w061+debug (read/write) 424988 424972 -16 -0.0
.bss 63280 63280 0 0.0
.data 672 672 0 0.0
.text 359332 359316 -16 -0.0
linux all-clusters-app debug (read only) 1666489 1687257 20768 1.2
(read/write) 118080 119024 944 0.8
.bss 50320 50640 320 0.6
.data 978 1010 32 3.3
.data.rel.ro 61536 62112 576 0.9
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 520 536 16 3.1
.rodata 137013 138069 1056 0.8
.text 1397282 1416130 18848 1.3
bridge-app debug+rpc (read only) 1281957 1282229 272 0.0
(read/write) 84136 84136 0 0.0
.bss 50800 50800 0 0.0
.data 976 976 0 0.0
.data.rel.ro 27368 27368 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 400 400 0 0.0
.rodata 110020 110020 0 0.0
.text 1076693 1076965 272 0.0
chip-tool debug (read only) 4288501 4315181 26680 0.6
(read/write) 122752 123648 896 0.7
.bss 17680 17712 32 0.2
.data 1584 1584 0 0.0
.data.rel.ro 98080 98928 848 0.9
.dynamic 592 592 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 216304 217360 1056 0.5
.text 3808053 3831877 23824 0.6
lighting-app debug+rpc (read only) 1540865 1541137 272 0.0
(read/write) 101008 101008 0 0.0
.bss 40184 40184 0 0.0
.data 1106 1106 0 0.0
.data.rel.ro 54448 54448 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 528 528 0 0.0
.rodata 128113 128113 0 0.0
.text 1280370 1280642 272 0.0
ota-provider-app debug (read only) 1239033 1239305 272 0.0
(read/write) 67104 67104 0 0.0
.bss 36640 36640 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24616 24616 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 440 440 0 0.0
.rodata 110408 110408 0 0.0
.text 1032498 1032770 272 0.0
ota-requestor-app debug (read only) 1302033 1302305 272 0.0
(read/write) 76360 76360 0 0.0
.bss 44896 44896 0 0.0
.data 816 816 0 0.0
.data.rel.ro 25528 25528 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 127072 127072 0 0.0
.text 1077170 1077442 272 0.0
shell debug (read only) 786145 786577 432 0.1
(read/write) 57664 57664 0 0.0
.bss 16072 16072 0 0.0
.data 242 242 0 0.0
.data.rel.ro 36848 36848 0 0.0
.dynamic 592 592 0 0.0
.got 3528 3528 0 0.0
.init 27 27 0 0.0
.init_array 336 336 0 0.0
.rodata 77423 77423 0 0.0
.text 607186 607618 432 0.1
tv-app debug (read only) 1773337 1773593 256 0.0
(read/write) 288600 288600 0 0.0
.bss 222224 222224 0 0.0
.data 2032 2032 0 0.0
.data.rel.ro 58704 58704 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 608 608 0 0.0
.rodata 153464 153464 0 0.0
.text 1477682 1477938 256 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2291992 2294888 2896 0.1
.bss 179668 179828 160 0.1
.data 5192 5216 24 0.5
.heap 851584 851400 -184 -0.0
.text 1254592 1257488 2896 0.2
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2274336 2274272 -64 -0.0
.bss 171868 171868 0 0.0
.data 5568 5568 0 0.0
.heap 859008 859008 0 0.0
.text 1236936 1236872 -64 -0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2252056 2251992 -64 -0.0
.bss 170772 170772 0 0.0
.data 5552 5552 0 0.0
.heap 860120 860120 0 0.0
.text 1214656 1214592 -64 -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) 2048656 2048656 0 0.0
.bss 156232 156232 0 0.0
.data 4968 4968 0 0.0
.heap 875248 875248 0 0.0
.text 1011256 1011256 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 861263 861219 -44 -0.0
bss 111180 111180 0 0.0
rodata 96856 96860 4 0.0
text 577612 577552 -60 -0.0
nrf52840dk_nrf52840+rpc (read/write) 822091 822031 -60 -0.0
bss 107424 107424 0 0.0
rodata 87636 87640 4 0.0
text 550784 550724 -60 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 786306 786242 -64 -0.0
bss 112556 112556 0 0.0
rodata 92100 92100 0 0.0
text 507080 507020 -60 -0.0
lock-app nrf52840dk_nrf52840 (read/write) 837971 837911 -60 -0.0
bss 110216 110216 0 0.0
rodata 93212 93216 4 0.0
text 559092 559032 -60 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 763266 763206 -60 -0.0
bss 111628 111628 0 0.0
rodata 88516 88520 4 0.0
text 488652 488592 -60 -0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497323 497323 0 0.0
bss 51824 51824 0 0.0
rodata 45776 45776 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 842643 842579 -64 -0.0
bss 110352 110352 0 0.0
rodata 94460 94460 0 0.0
text 562300 562240 -60 -0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 837947 837899 -48 -0.0
bss 110252 110252 0 0.0
rodata 93236 93236 0 0.0
text 558932 558872 -60 -0.0
shell nrf52840dk_nrf52840 (read/write) 776179 776147 -32 -0.0
bss 109096 109096 0 0.0
rodata 72536 72536 0 0.0
text 519936 519912 -24 -0.0
nrf5340dk_nrf5340_cpuapp (read/write) 691202 691166 -36 -0.0
bss 110080 110080 0 0.0
rodata 67180 67176 -4 -0.0
text 440548 440516 -32 -0.0
p6 lock-app default (read/write) 2167872 2167824 -48 -0.0
.bss 66216 66216 0 0.0
.data 2416 2416 0 0.0
.heap 964712 964712 0 0.0
.text 1126136 1126088 -48 -0.0
qpg lighting-app qpg6100+debug (read only) 490500 490436 -64 -0.0
(read/write) 114144 114144 0 0.0
.bss 50336 50336 0 0.0
.data 1000 1000 0 0.0
.text 485180 485116 -64 -0.0
lock-app qpg6100+debug (read only) 466840 466780 -60 -0.0
(read/write) 114140 114140 0 0.0
.bss 49288 49288 0 0.0
.data 956 956 0 0.0
.text 461520 461460 -60 -0.0
persistent-storage-app qpg6100+debug (read only) 155820 155820 0 0.0
(read/write) 114140 114140 0 0.0
.bss 27752 27752 0 0.0
.data 372 372 0 0.0
.text 150500 150500 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 662890 662842 -48 -0.0
bss 68992 68992 0 0.0
noinit 33216 33216 0 0.0
text 458036 457992 -44 -0.0

examples/shell/shell_common/cmd_ping.cpp Show resolved Hide resolved
examples/lock-app/esp32/main/AppTask.cpp Outdated Show resolved Hide resolved
examples/shell/shell_common/cmd_send.cpp Show resolved Hide resolved
@boring-cyborg boring-cyborg bot added the lib label Nov 1, 2021
@andy31415
Copy link
Contributor

Fast track: several day old PR (had time to review if interested), generally safe change (refactor in naming and replacement), has several review checkmarks.

@andy31415 andy31415 merged commit 94d0e9e into project-chip:master Nov 2, 2021
@kpschoedel kpschoedel deleted the x10062-clock-type-5 branch November 2, 2021 16:06
kpschoedel added a commit to kpschoedel/connectedhomeip that referenced this pull request Nov 2, 2021
#### Problem

`System::Clock::Zero` is a constants that doesn't follow the usual
convention of being named with a leading `k`.

Requested in PR project-chip#11238 review.

#### Change overview

Rename `System::Clock::Zero` to `System::Clock::kZero`.

#### Testing

CI; no changes to functionality.
andy31415 pushed a commit that referenced this pull request Nov 2, 2021
#### Problem

`System::Clock::Zero` is a constants that doesn't follow the usual
convention of being named with a leading `k`.

Requested in PR #11238 review.

#### Change overview

Rename `System::Clock::Zero` to `System::Clock::kZero`.

#### Testing

CI; no changes to functionality.
PSONALl pushed a commit to PSONALl/connectedhomeip that referenced this pull request Dec 3, 2021
* WIP

* Replace and remove weakly-typed System::Clock code

#### Problem

Previous PRs added strong types to `System::Clock` and converted many
uses, but a few remain.

#### Change overview

Convert the remaining uses of the weak types (`MonotonicMilliseconds`
and `MonotonicMicroseconds`), and remove them from `System::Clock`.

Fixes project-chip#10062 Some operations on System::Clock types are not safe

There are some remaining uses of `Clock`-derived values as plain
integers; these can be found for later cleanup by the use of `.count()`.

#### Testing

CI; no changes to functionality.
Converted `TestPlatformTime`.

* review

* initialization consistency

* restyle
PSONALl pushed a commit to PSONALl/connectedhomeip that referenced this pull request Dec 3, 2021
#### Problem

`System::Clock::Zero` is a constants that doesn't follow the usual
convention of being named with a leading `k`.

Requested in PR project-chip#11238 review.

#### Change overview

Rename `System::Clock::Zero` to `System::Clock::kZero`.

#### Testing

CI; no changes to functionality.
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.

Some operations on System::Clock types are not safe
3 participants