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

raise MTRDevice for subclassing #34757

Closed

Conversation

kiel-apple
Copy link
Contributor

@kiel-apple kiel-apple commented Aug 2, 2024

  • rename MTRDevice that exists to MTRDeviceConcrete (open to other names)
  • ensure tests pass
    • MTRSwiftDeviceTests
    • all other tests
  • create MTRDevice as interface-only base class - MTRDeviceConcrete's API, but with "this method is not implemented in the base class" stubs for all methods
  • review for MTRDeviceConcrete instances that should instead be MTRDevice-generic

Copy link

semanticdiff-com bot commented Aug 2, 2024

Review changes with SemanticDiff.

Copy link

github-actions bot commented Aug 2, 2024

PR #34757: Size comparison from 26c816a to 0977039

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 26c816a 0977039 change % change
bl602 lighting-app bl602 FLASH 1277742 1277742 0 0.0
RAM 95896 95896 0 0.0
bl602+mfd FLASH 1292000 1292000 0 0.0
RAM 96048 96048 0 0.0
bl602+rpc FLASH 1316710 1316710 0 0.0
RAM 104320 104320 0 0.0
bl702 lighting-app bl702 FLASH 1098886 1098886 0 0.0
RAM 15249 15249 0 0.0
bl702+mfd FLASH 1109580 1109580 0 0.0
RAM 15393 15393 0 0.0
bl702+rpc FLASH 1188952 1188952 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 881920 881920 0 0.0
RAM 27352 27352 0 0.0
bl706-wifi FLASH 1135098 1135098 0 0.0
RAM 14685 14685 0 0.0
bl702l lighting-app bl702l FLASH 1085792 1085792 0 0.0
RAM 21804 21804 0 0.0
bl702l+mfd FLASH 1097054 1097054 0 0.0
RAM 21956 21956 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 802664 802664 0 0.0
RAM 117620 117620 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 818628 818628 0 0.0
RAM 125220 125220 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 810904 810904 0 0.0
RAM 119500 119500 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 763108 763108 0 0.0
RAM 113640 113640 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747768 747768 0 0.0
RAM 113832 113832 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 610502 610502 0 0.0
RAM 205380 205380 0 0.0
lock CC3235SF_LAUNCHXL FLASH 654774 654774 0 0.0
RAM 205620 205620 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671745 671745 0 0.0
RAM 78348 78348 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 691597 691597 0 0.0
RAM 80980 80980 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 691597 691597 0 0.0
RAM 80980 80980 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 648541 648541 0 0.0
RAM 73416 73416 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 610409 610409 0 0.0
RAM 71340 71340 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 627761 627761 0 0.0
RAM 74356 74356 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 599861 599861 0 0.0
RAM 68372 68372 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 619713 619713 0 0.0
RAM 71004 71004 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 619713 619713 0 0.0
RAM 71004 71004 0 0.0
efr32 lighting-app BRD4187C FLASH 929712 929712 0 0.0
RAM 135148 135148 0 0.0
lock-app BRD4338a FLASH 737116 737108 -8 -0.0
RAM 208436 208436 0 0.0
window-app BRD4187C FLASH 1015508 1015508 0 0.0
RAM 127084 127084 0 0.0
esp32 all-clusters-app c3devkit DRAM 94136 94136 0 0.0
FLASH 1530482 1530482 0 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 115072 115072 0 0.0
FLASH 1541014 1541014 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2746431 2746431 0 0.0
RAM 128368 128368 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 6027574 6027574 0 0.0
RAM 509904 509904 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5367464 5367464 0 0.0
RAM 240000 240000 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4727210 4727210 0 0.0
RAM 217024 217024 0 0.0
chip-tool debug unknown 5832 5832 0 0.0
FLASH 12496460 12496460 0 0.0
RAM 558362 558362 0 0.0
chip-tool-ipv6only arm64 unknown 20352 20352 0 0.0
FLASH 11173932 11173932 0 0.0
RAM 608320 608320 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11474703 11474703 0 0.0
RAM 555098 555098 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4483232 4483232 0 0.0
RAM 202192 202192 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5661281 5661281 0 0.0
RAM 228112 228112 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4782040 4782040 0 0.0
RAM 203840 203840 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4422354 4422354 0 0.0
RAM 197824 197824 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4560500 4560500 0 0.0
RAM 202360 202360 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3066669 3066669 0 0.0
RAM 158952 158952 0 0.0
thermostat-no-ble arm64 unknown 9352 9352 0 0.0
FLASH 4357300 4357300 0 0.0
RAM 242216 242216 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 6004549 6004549 0 0.0
RAM 583552 583552 0 0.0
tv-casting-app debug unknown 5176 5176 0 0.0
FLASH 10700989 10700989 0 0.0
RAM 645608 645608 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1505732 1505732 0 0.0
RAM 227296 227296 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 906844 906844 0 0.0
RAM 142225 142225 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 879492 879492 0 0.0
RAM 140364 140364 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 838596 838596 0 0.0
RAM 141062 141062 0 0.0
nxp contact k32w0+release FLASH 576700 576700 0 0.0
RAM 70416 70416 0 0.0
k32w1+release FLASH 592408 592408 0 0.0
RAM 74456 74456 0 0.0
light k32w0+release FLASH 612344 612344 0 0.0
RAM 69920 69920 0 0.0
k32w1+release FLASH 677240 677240 0 0.0
RAM 83232 83232 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1635916 1635916 0 0.0
RAM 210912 210912 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1541116 1541116 0 0.0
RAM 207664 207664 0 0.0
light cy8ckit_062s2_43012 FLASH 1463348 1463348 0 0.0
RAM 200776 200776 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462156 1462156 0 0.0
RAM 225120 225120 0 0.0
qpg lighting-app qpg6105+debug FLASH 655460 655460 0 0.0
RAM 105148 105148 0 0.0
lock-app qpg6105+debug FLASH 612912 612912 0 0.0
RAM 99632 99632 0 0.0
stm32 light STM32WB5MM-DK FLASH 477792 477792 0 0.0
RAM 144756 144756 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619742 619742 0 0.0
RAM 50936 50936 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 678490 678490 0 0.0
RAM 149556 149556 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 771754 771754 0 0.0
RAM 110732 110732 0 0.0
bridge-app tlsr9258a FLASH 678356 678356 0 0.0
RAM 91624 91624 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621334 621334 0 0.0
RAM 50980 50980 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 707198 707198 0 0.0
RAM 74316 74316 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 620110 620110 0 0.0
RAM 145580 145580 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 806196 806196 0 0.0
RAM 99504 99504 0 0.0
lock-app-dfu tlsr9528a FLASH 654076 654076 0 0.0
RAM 67012 67012 0 0.0
ota-requestor-app tlsr9258a FLASH 696390 696390 0 0.0
RAM 91308 91308 0 0.0
pump-app-usb tlsr9518adk80d FLASH 630690 630690 0 0.0
RAM 55756 55756 0 0.0
pump-controller-app tlsr9518adk80d FLASH 608290 608290 0 0.0
RAM 53000 53000 0 0.0
shell tlsr9518adk80d FLASH 466810 466810 0 0.0
RAM 68660 68660 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 628102 628102 0 0.0
RAM 52696 52696 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 652112 652112 0 0.0
RAM 56636 56636 0 0.0
thermostat tlsr9518adk80d FLASH 631874 631874 0 0.0
RAM 53376 53376 0 0.0
window-covering tlsr9118bdk40d FLASH 522252 522252 0 0.0
RAM 98536 98536 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1705140 1705140 0 0.0
RAM 51820 51820 0 0.0
chip-tool-ubsan arm unknown 2404 2404 0 0.0
FLASH 16619594 16619594 0 0.0
RAM 7303840 7303840 0 0.0

@kiel-apple kiel-apple closed this Aug 2, 2024
@kiel-apple kiel-apple force-pushed the darwin-raise-mtrdevice branch from 0977039 to 2bd9d0b Compare August 2, 2024 21:03
@kiel-apple kiel-apple reopened this Aug 2, 2024
@@ -366,7 +384,7 @@ - (BOOL)isEqual:(id)object
// better behavior.
#define MTRDEVICE_SUBSCRIPTION_LATENCY_NEW_VALUE_WEIGHT (1.0 / 3.0)

@interface MTRDevice ()
@interface MTRDevice_Concrete ()
Copy link
Contributor

Choose a reason for hiding this comment

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

We should duplicate the file for step 1, not rename.

That sets us up nicely for the next stage where we take all of the methods in MTRDevice and put warnings in them or logs, when they're called on the abstract version of the class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Redid the first commit to duplicate the .mm file.

Copy link

github-actions bot commented Aug 2, 2024

PR #34757: Size comparison from 1e9082f to a075fb5

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 1e9082f a075fb5 change % change
bl602 lighting-app bl602 FLASH 1277742 1277742 0 0.0
RAM 95896 95896 0 0.0
bl602+mfd FLASH 1292000 1292000 0 0.0
RAM 96048 96048 0 0.0
bl602+rpc FLASH 1316710 1316710 0 0.0
RAM 104320 104320 0 0.0
bl702 lighting-app bl702 FLASH 1098886 1098886 0 0.0
RAM 15249 15249 0 0.0
bl702+mfd FLASH 1109580 1109580 0 0.0
RAM 15393 15393 0 0.0
bl702+rpc FLASH 1188952 1188952 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 881920 881920 0 0.0
RAM 27352 27352 0 0.0
bl706-wifi FLASH 1135098 1135098 0 0.0
RAM 14685 14685 0 0.0
bl702l lighting-app bl702l FLASH 1085792 1085792 0 0.0
RAM 21804 21804 0 0.0
bl702l+mfd FLASH 1097054 1097054 0 0.0
RAM 21956 21956 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 802664 802664 0 0.0
RAM 117620 117620 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 818628 818628 0 0.0
RAM 125220 125220 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 810904 810904 0 0.0
RAM 119500 119500 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 763108 763108 0 0.0
RAM 113640 113640 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747768 747768 0 0.0
RAM 113832 113832 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 610502 610502 0 0.0
RAM 205380 205380 0 0.0
lock CC3235SF_LAUNCHXL FLASH 654774 654774 0 0.0
RAM 205620 205620 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671745 671745 0 0.0
RAM 78348 78348 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 691597 691597 0 0.0
RAM 80980 80980 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 691597 691597 0 0.0
RAM 80980 80980 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 648541 648541 0 0.0
RAM 73416 73416 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 610409 610409 0 0.0
RAM 71340 71340 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 627761 627761 0 0.0
RAM 74356 74356 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 599861 599861 0 0.0
RAM 68372 68372 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 619713 619713 0 0.0
RAM 71004 71004 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 619713 619713 0 0.0
RAM 71004 71004 0 0.0
efr32 lighting-app BRD4187C FLASH 929712 929712 0 0.0
RAM 135148 135148 0 0.0
lock-app BRD4338a FLASH 737116 737108 -8 -0.0
RAM 208436 208436 0 0.0
window-app BRD4187C FLASH 1015508 1015508 0 0.0
RAM 127084 127084 0 0.0
esp32 all-clusters-app c3devkit DRAM 94136 94136 0 0.0
FLASH 1530482 1530482 0 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 115072 115072 0 0.0
FLASH 1541014 1541014 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2746431 2746431 0 0.0
RAM 128368 128368 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 6027574 6027574 0 0.0
RAM 509904 509904 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5367464 5367464 0 0.0
RAM 240000 240000 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4727210 4727210 0 0.0
RAM 217024 217024 0 0.0
chip-tool debug unknown 5832 5832 0 0.0
FLASH 12496460 12496460 0 0.0
RAM 558362 558362 0 0.0
chip-tool-ipv6only arm64 unknown 20352 20352 0 0.0
FLASH 11173932 11173932 0 0.0
RAM 608320 608320 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11474703 11474703 0 0.0
RAM 555098 555098 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4483232 4483232 0 0.0
RAM 202192 202192 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5661281 5661281 0 0.0
RAM 228112 228112 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4782040 4782040 0 0.0
RAM 203840 203840 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4422354 4422354 0 0.0
RAM 197824 197824 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4560500 4560500 0 0.0
RAM 202360 202360 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3066669 3066669 0 0.0
RAM 158952 158952 0 0.0
thermostat-no-ble arm64 unknown 9352 9352 0 0.0
FLASH 4357300 4357300 0 0.0
RAM 242216 242216 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 6004549 6004549 0 0.0
RAM 583552 583552 0 0.0
tv-casting-app debug unknown 5176 5176 0 0.0
FLASH 10700989 10700989 0 0.0
RAM 645608 645608 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1505732 1505732 0 0.0
RAM 227296 227296 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 906844 906844 0 0.0
RAM 142225 142225 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 879492 879492 0 0.0
RAM 140364 140364 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 838596 838596 0 0.0
RAM 141062 141062 0 0.0
nxp contact k32w0+release FLASH 576700 576700 0 0.0
RAM 70416 70416 0 0.0
k32w1+release FLASH 592408 592408 0 0.0
RAM 74456 74456 0 0.0
light k32w0+release FLASH 612344 612344 0 0.0
RAM 69920 69920 0 0.0
k32w1+release FLASH 677240 677240 0 0.0
RAM 83232 83232 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1635916 1635916 0 0.0
RAM 210912 210912 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1541116 1541116 0 0.0
RAM 207664 207664 0 0.0
light cy8ckit_062s2_43012 FLASH 1463348 1463348 0 0.0
RAM 200776 200776 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462156 1462156 0 0.0
RAM 225120 225120 0 0.0
qpg lighting-app qpg6105+debug FLASH 655460 655460 0 0.0
RAM 105148 105148 0 0.0
lock-app qpg6105+debug FLASH 612912 612912 0 0.0
RAM 99632 99632 0 0.0
stm32 light STM32WB5MM-DK FLASH 477792 477792 0 0.0
RAM 144756 144756 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619742 619742 0 0.0
RAM 50936 50936 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 678490 678490 0 0.0
RAM 149556 149556 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 771754 771754 0 0.0
RAM 110732 110732 0 0.0
bridge-app tlsr9258a FLASH 678356 678356 0 0.0
RAM 91624 91624 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621334 621334 0 0.0
RAM 50980 50980 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 707198 707198 0 0.0
RAM 74316 74316 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 620110 620110 0 0.0
RAM 145580 145580 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 806196 806196 0 0.0
RAM 99504 99504 0 0.0
lock-app-dfu tlsr9528a FLASH 654076 654076 0 0.0
RAM 67012 67012 0 0.0
ota-requestor-app tlsr9258a FLASH 696390 696390 0 0.0
RAM 91308 91308 0 0.0
pump-app-usb tlsr9518adk80d FLASH 630690 630690 0 0.0
RAM 55756 55756 0 0.0
pump-controller-app tlsr9518adk80d FLASH 608290 608290 0 0.0
RAM 53000 53000 0 0.0
shell tlsr9518adk80d FLASH 466810 466810 0 0.0
RAM 68660 68660 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 628102 628102 0 0.0
RAM 52696 52696 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 652112 652112 0 0.0
RAM 56636 56636 0 0.0
thermostat tlsr9518adk80d FLASH 631874 631874 0 0.0
RAM 53376 53376 0 0.0
window-covering tlsr9118bdk40d FLASH 522252 522252 0 0.0
RAM 98536 98536 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1705140 1705140 0 0.0
RAM 51820 51820 0 0.0
chip-tool-ubsan arm unknown 2404 2404 0 0.0
FLASH 16619594 16619594 0 0.0
RAM 7303840 7303840 0 0.0

@class MTRDeviceController;

MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
@interface MTRDevice_Concrete : MTRDevice
Copy link
Contributor

Choose a reason for hiding this comment

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

"Concrete" doesn't really mean anything. Presumably other implementations of MTRDevice will also be "concrete"...

What's special about this impl? Really, the fact that it does things with the Matter SDK directly, right? So maybe MTRDeviceInProcess? MTRDeviceDirect? Having a hard time with the naming....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Direct crossed my mind.

Copy link
Contributor

Choose a reason for hiding this comment

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

Given this is a hidden class, we can rename it at any time, let's get this merged post tests passing, and please remove this availability flags here, since it's not public API

@kiel-apple kiel-apple force-pushed the darwin-raise-mtrdevice branch from a075fb5 to dea4e7d Compare August 3, 2024 00:03
Copy link

github-actions bot commented Aug 3, 2024

PR #34757: Size comparison from da6dd90 to dea4e7d

Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section da6dd90 dea4e7d change % change
bl602 lighting-app bl602 FLASH 1277742 1277742 0 0.0
RAM 95896 95896 0 0.0
bl602+mfd FLASH 1292000 1292000 0 0.0
RAM 96048 96048 0 0.0
bl602+rpc FLASH 1316710 1316710 0 0.0
RAM 104320 104320 0 0.0
bl702 lighting-app bl702 FLASH 1098886 1098886 0 0.0
RAM 15249 15249 0 0.0
bl702+mfd FLASH 1109580 1109580 0 0.0
RAM 15393 15393 0 0.0
bl702+rpc FLASH 1188952 1188952 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 881920 881920 0 0.0
RAM 27352 27352 0 0.0
bl706-wifi FLASH 1135098 1135098 0 0.0
RAM 14685 14685 0 0.0
bl702l lighting-app bl702l FLASH 1085792 1085792 0 0.0
RAM 21804 21804 0 0.0
bl702l+mfd FLASH 1097054 1097054 0 0.0
RAM 21956 21956 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 802664 802664 0 0.0
RAM 117620 117620 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 818628 818628 0 0.0
RAM 125220 125220 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 810904 810904 0 0.0
RAM 119500 119500 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 763108 763108 0 0.0
RAM 113640 113640 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747768 747768 0 0.0
RAM 113832 113832 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 610502 610502 0 0.0
RAM 205380 205380 0 0.0
lock CC3235SF_LAUNCHXL FLASH 654774 654774 0 0.0
RAM 205620 205620 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671745 671745 0 0.0
RAM 78348 78348 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 691597 691597 0 0.0
RAM 80980 80980 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 691597 691597 0 0.0
RAM 80980 80980 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 648541 648541 0 0.0
RAM 73416 73416 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 610409 610409 0 0.0
RAM 71340 71340 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 627761 627761 0 0.0
RAM 74356 74356 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 599861 599861 0 0.0
RAM 68372 68372 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 619713 619713 0 0.0
RAM 71004 71004 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 619713 619713 0 0.0
RAM 71004 71004 0 0.0
efr32 lighting-app BRD4187C FLASH 929712 929712 0 0.0
RAM 135148 135148 0 0.0
lock-app BRD4338a FLASH 737116 737108 -8 -0.0
RAM 208436 208436 0 0.0
window-app BRD4187C FLASH 1015508 1015508 0 0.0
RAM 127084 127084 0 0.0
esp32 all-clusters-app c3devkit DRAM 94136 94136 0 0.0
FLASH 1530482 1530482 0 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 115072 115072 0 0.0
FLASH 1541014 1541014 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2746431 2746431 0 0.0
RAM 128368 128368 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 6027574 6027574 0 0.0
RAM 509904 509904 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5367464 5367464 0 0.0
RAM 240000 240000 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4727210 4727210 0 0.0
RAM 217024 217024 0 0.0
chip-tool debug unknown 5832 5832 0 0.0
FLASH 12496460 12496460 0 0.0
RAM 558362 558362 0 0.0
chip-tool-ipv6only arm64 unknown 20352 20352 0 0.0
FLASH 11173932 11173932 0 0.0
RAM 608320 608320 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11474703 11474703 0 0.0
RAM 555098 555098 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4483232 4483232 0 0.0
RAM 202192 202192 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5661281 5661281 0 0.0
RAM 228112 228112 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4782040 4782040 0 0.0
RAM 203840 203840 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4422354 4422354 0 0.0
RAM 197824 197824 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4560500 4560500 0 0.0
RAM 202360 202360 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3066669 3066669 0 0.0
RAM 158952 158952 0 0.0
thermostat-no-ble arm64 unknown 9352 9352 0 0.0
FLASH 4357300 4357300 0 0.0
RAM 242216 242216 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 6004549 6004549 0 0.0
RAM 583552 583552 0 0.0
tv-casting-app debug unknown 5176 5176 0 0.0
FLASH 10700989 10700989 0 0.0
RAM 645608 645608 0 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1505732 1505732 0 0.0
RAM 227296 227296 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 906844 906844 0 0.0
RAM 142225 142225 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 879492 879492 0 0.0
RAM 140364 140364 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 838596 838596 0 0.0
RAM 141062 141062 0 0.0
nxp contact k32w0+release FLASH 576700 576700 0 0.0
RAM 70416 70416 0 0.0
k32w1+release FLASH 592408 592408 0 0.0
RAM 74456 74456 0 0.0
light k32w0+release FLASH 612344 612344 0 0.0
RAM 69920 69920 0 0.0
k32w1+release FLASH 677240 677240 0 0.0
RAM 83232 83232 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1635916 1635916 0 0.0
RAM 210912 210912 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1541116 1541116 0 0.0
RAM 207664 207664 0 0.0
light cy8ckit_062s2_43012 FLASH 1463348 1463348 0 0.0
RAM 200776 200776 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462156 1462156 0 0.0
RAM 225120 225120 0 0.0
qpg lighting-app qpg6105+debug FLASH 655460 655460 0 0.0
RAM 105148 105148 0 0.0
lock-app qpg6105+debug FLASH 612912 612912 0 0.0
RAM 99632 99632 0 0.0
stm32 light STM32WB5MM-DK FLASH 477792 477792 0 0.0
RAM 144756 144756 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619742 619742 0 0.0
RAM 50936 50936 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 678490 678490 0 0.0
RAM 149556 149556 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 771754 771754 0 0.0
RAM 110732 110732 0 0.0
bridge-app tlsr9258a FLASH 678356 678356 0 0.0
RAM 91624 91624 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621334 621334 0 0.0
RAM 50980 50980 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 707198 707198 0 0.0
RAM 74316 74316 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 620110 620110 0 0.0
RAM 145580 145580 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 806196 806196 0 0.0
RAM 99504 99504 0 0.0
lock-app-dfu tlsr9528a FLASH 654076 654076 0 0.0
RAM 67012 67012 0 0.0
ota-requestor-app tlsr9258a FLASH 696390 696390 0 0.0
RAM 91308 91308 0 0.0
pump-app-usb tlsr9518adk80d FLASH 630690 630690 0 0.0
RAM 55756 55756 0 0.0
pump-controller-app tlsr9518adk80d FLASH 608290 608290 0 0.0
RAM 53000 53000 0 0.0
shell tlsr9518adk80d FLASH 466810 466810 0 0.0
RAM 68660 68660 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 628102 628102 0 0.0
RAM 52696 52696 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 652112 652112 0 0.0
RAM 56636 56636 0 0.0
thermostat tlsr9518adk80d FLASH 631874 631874 0 0.0
RAM 53376 53376 0 0.0
window-covering tlsr9118bdk40d FLASH 522252 522252 0 0.0
RAM 98536 98536 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1705140 1705140 0 0.0
RAM 51820 51820 0 0.0
chip-tool-ubsan arm unknown 2404 2404 0 0.0
FLASH 16619594 16619594 0 0.0
RAM 7303840 7303840 0 0.0

Copy link

github-actions bot commented Aug 5, 2024

PR #34757: Size comparison from da6dd90 to 6cbef72

Increases above 0.2%:

platform target config section da6dd90 6cbef72 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 610502 612286 1784 0.3
linux air-purifier-app debug FLASH 2746431 2752385 5954 0.2
shell debug FLASH 3066669 3074637 7968 0.3
telink thermostat tlsr9518adk80d FLASH 631874 633186 1312 0.2
tizen all-clusters-app arm FLASH 1705140 1709556 4416 0.3
Full report (85 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section da6dd90 6cbef72 change % change
bl602 lighting-app bl602 FLASH 1277742 1277798 56 0.0
RAM 95896 95896 0 0.0
bl602+mfd FLASH 1292000 1292056 56 0.0
RAM 96048 96048 0 0.0
bl602+rpc FLASH 1316710 1317014 304 0.0
RAM 104320 104320 0 0.0
bl702 lighting-app bl702 FLASH 1098886 1098938 52 0.0
RAM 15249 15249 0 0.0
bl702+mfd FLASH 1109580 1109888 308 0.0
RAM 15393 15393 0 0.0
bl702+rpc FLASH 1188952 1189260 308 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 881920 881972 52 0.0
RAM 27352 27352 0 0.0
bl706-wifi FLASH 1135098 1135150 52 0.0
RAM 14685 14685 0 0.0
bl702l lighting-app bl702l FLASH 1085792 1086100 308 0.0
RAM 21804 21804 0 0.0
bl702l+mfd FLASH 1097054 1097362 308 0.0
RAM 21956 21956 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 802664 802792 128 0.0
RAM 117620 117620 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 818628 818612 -16 -0.0
RAM 125220 125220 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 810904 810904 0 0.0
RAM 119500 119500 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 763108 763244 136 0.0
RAM 113640 113640 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747768 747752 -16 -0.0
RAM 113832 113832 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 610502 612286 1784 0.3
RAM 205380 205380 0 0.0
lock CC3235SF_LAUNCHXL FLASH 654774 654790 16 0.0
RAM 205620 205620 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671745 671905 160 0.0
RAM 78348 78348 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 691597 691765 168 0.0
RAM 80980 80980 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 691597 691765 168 0.0
RAM 80980 80980 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 648541 648693 152 0.0
RAM 73416 73416 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 610409 610409 0 0.0
RAM 71340 71340 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 627761 627753 -8 -0.0
RAM 74356 74356 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 599861 601269 1408 0.2
RAM 68372 68372 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 619713 621121 1408 0.2
RAM 71004 71004 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 619713 621121 1408 0.2
RAM 71004 71004 0 0.0
efr32 lighting-app BRD4187C FLASH 929712 929824 112 0.0
RAM 135148 135148 0 0.0
lock-app BRD4338a FLASH 737116 737124 8 0.0
RAM 208436 208436 0 0.0
window-app BRD4187C FLASH 1015508 1015508 0 0.0
RAM 127084 127084 0 0.0
esp32 all-clusters-app c3devkit DRAM 94136 94160 24 0.0
FLASH 1530482 1532224 1742 0.1
IRAM 82538 82538 0 0.0
m5stack DRAM 115072 115088 16 0.0
FLASH 1541014 1542358 1344 0.1
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2746431 2752385 5954 0.2
RAM 128368 128368 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 6027574 6033090 5516 0.1
RAM 509904 510416 512 0.1
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5367464 5373502 6038 0.1
RAM 240000 240000 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4727210 4727646 436 0.0
RAM 217024 217024 0 0.0
chip-tool debug unknown 5832 5832 0 0.0
FLASH 12496460 12515968 19508 0.2
RAM 558362 558618 256 0.0
chip-tool-ipv6only arm64 unknown 20352 20336 -16 -0.1
FLASH 11173932 11194300 20368 0.2
RAM 608320 608624 304 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11474703 11493767 19064 0.2
RAM 555098 555354 256 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4483232 4483222 -10 -0.0
RAM 202192 202192 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5661281 5661713 432 0.0
RAM 228112 228112 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4782040 4782046 6 0.0
RAM 203840 203840 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4422354 4422360 6 0.0
RAM 197824 197824 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4560500 4560968 468 0.0
RAM 202360 202360 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3066669 3074637 7968 0.3
RAM 158952 159112 160 0.1
thermostat-no-ble arm64 unknown 9352 9352 0 0.0
FLASH 4357300 4361284 3984 0.1
RAM 242216 242296 80 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 6004549 6004885 336 0.0
RAM 583552 583872 320 0.1
tv-casting-app debug unknown 5176 5176 0 0.0
FLASH 10700989 10720141 19152 0.2
RAM 645608 645896 288 0.0
mbed lock-app-release cy8cproto_062_4343w FLASH 1505732 1505732 0 0.0
RAM 227296 227296 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 906844 908324 1480 0.2
RAM 142225 142247 22 0.0
nrf7002dk_nrf5340_cpuapp FLASH 879492 880356 864 0.1
RAM 140364 140386 22 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 838596 839828 1232 0.1
RAM 141062 141062 0 0.0
nxp contact k32w0+release FLASH 576700 576684 -16 -0.0
RAM 70416 70416 0 0.0
k32w1+release FLASH 592408 592400 -8 -0.0
RAM 74456 74456 0 0.0
light k32w0+release FLASH 612344 612424 80 0.0
RAM 69920 69920 0 0.0
k32w1+release FLASH 677240 677384 144 0.0
RAM 83232 83232 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1635916 1637692 1776 0.1
RAM 210912 210928 16 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1541116 1542956 1840 0.1
RAM 207664 207664 0 0.0
light cy8ckit_062s2_43012 FLASH 1463348 1463524 176 0.0
RAM 200776 200776 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462156 1462172 16 0.0
RAM 225120 225120 0 0.0
qpg lighting-app qpg6105+debug FLASH 655460 655596 136 0.0
RAM 105148 105148 0 0.0
lock-app qpg6105+debug FLASH 612912 612896 -16 -0.0
RAM 99632 99632 0 0.0
stm32 light STM32WB5MM-DK FLASH 477792 477920 128 0.0
RAM 144756 144756 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619742 619760 18 0.0
RAM 50936 50936 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 678490 679842 1352 0.2
RAM 149556 149576 20 0.0
all-clusters-minimal-app tlsr9528a FLASH 771754 772806 1052 0.1
RAM 110732 110732 0 0.0
bridge-app tlsr9258a FLASH 678356 678462 106 0.0
RAM 91624 91624 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621334 621352 18 0.0
RAM 50980 50980 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 707198 707216 18 0.0
RAM 74316 74316 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 620110 620216 106 0.0
RAM 145580 145580 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 806196 806302 106 0.0
RAM 99504 99504 0 0.0
lock-app-dfu tlsr9528a FLASH 654076 654094 18 0.0
RAM 67012 67012 0 0.0
ota-requestor-app tlsr9258a FLASH 696390 696496 106 0.0
RAM 91308 91308 0 0.0
pump-app-usb tlsr9518adk80d FLASH 630690 630796 106 0.0
RAM 55756 55756 0 0.0
pump-controller-app tlsr9518adk80d FLASH 608290 608308 18 0.0
RAM 53000 53000 0 0.0
shell tlsr9518adk80d FLASH 466810 466810 0 0.0
RAM 68660 68660 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 628102 628120 18 0.0
RAM 52696 52696 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 652112 652130 18 0.0
RAM 56636 56636 0 0.0
thermostat tlsr9518adk80d FLASH 631874 633186 1312 0.2
RAM 53376 53380 4 0.0
window-covering tlsr9118bdk40d FLASH 522252 522270 18 0.0
RAM 98536 98536 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1705140 1709556 4416 0.3
RAM 51820 51836 16 0.0
chip-tool-ubsan arm unknown 2404 2404 0 0.0
FLASH 16619594 16652954 33360 0.2
RAM 7303840 7317176 13336 0.2

start closing off `MTRDevice` direct use

add a note to self / reviewers

fix `newBaseDevice` / `removeExpectedValue[s]` error

ty @bzbarsky-apple

move `MTRDevice_Concrete.h` to Project scope

was Public

note to self about coming change in MTRDeviceController

move some MTRDevice utilities

to MTRDevice_Internal.h where they are at least shared between MTRDevice and MTRDevice_Concrete.

but probably they merit their own files - the header is getting heavy

add subclass-facing init to `MTRDevice`

superclass for `MTRDevice_Concrete` code was `NSObject`, but now is `MTRDevice`, which hides its `init`s.

fix build of `MTRDevice_Internal.h`

Revert "move some MTRDevice utilities"

This reverts commit ba7331f.

fix MTRDevice_Concrete block-scoped pointer types

move clamped number to utilities

remove duplicated MTRClampedNumber implementations

more `MTRClampedNumber` cleanup

duplicate MTRDeviceDelegateInfo for now

restore prematurely removed `MTRDevice` methods

move common `MTRDeviceClusterData` keys

remove now-obsolete include for CodeUtils

remove duplicate `MTRDeviceClusterData`

remove duplicate key symbols from `MTRDevice_Concrete`

remove availability annotations for nonpublic API

Restyled by whitespace

Restyled by clang-format

remove superfluous init/new signatures

available by default
@kiel-apple kiel-apple force-pushed the darwin-raise-mtrdevice branch from 168bb3a to d774007 Compare August 6, 2024 20:36
Copy link

github-actions bot commented Aug 6, 2024

PR #34757: Size comparison from 83dc1c8 to d774007

Full report (84 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 83dc1c8 d774007 change % change
bl602 lighting-app bl602 FLASH 1277798 1277798 0 0.0
RAM 95896 95896 0 0.0
bl602+mfd FLASH 1292056 1292056 0 0.0
RAM 96048 96048 0 0.0
bl602+rpc FLASH 1317014 1317014 0 0.0
RAM 104320 104320 0 0.0
bl702 lighting-app bl702 FLASH 1098938 1098938 0 0.0
RAM 15249 15249 0 0.0
bl702+mfd FLASH 1109888 1109888 0 0.0
RAM 15393 15393 0 0.0
bl702+rpc FLASH 1189260 1189260 0 0.0
RAM 24245 24245 0 0.0
bl706-eth FLASH 881972 881972 0 0.0
RAM 27352 27352 0 0.0
bl706-wifi FLASH 1135150 1135150 0 0.0
RAM 14685 14685 0 0.0
bl702l lighting-app bl702l FLASH 1086100 1086100 0 0.0
RAM 21804 21804 0 0.0
bl702l+mfd FLASH 1097362 1097362 0 0.0
RAM 21956 21956 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 802792 802792 0 0.0
RAM 117620 117620 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 818612 818612 0 0.0
RAM 125220 125220 0 0.0
lock-mtd LP_EM_CC1354P10_6 FLASH 810904 810904 0 0.0
RAM 119500 119500 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 763244 763244 0 0.0
RAM 113640 113640 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 747752 747752 0 0.0
RAM 113832 113832 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 612286 612286 0 0.0
RAM 205380 205380 0 0.0
lock CC3235SF_LAUNCHXL FLASH 654790 654790 0 0.0
RAM 205620 205620 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 671905 671905 0 0.0
RAM 78348 78348 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 691765 691765 0 0.0
RAM 80980 80980 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 691765 691765 0 0.0
RAM 80980 80980 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 648693 648693 0 0.0
RAM 73416 73416 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 610409 610409 0 0.0
RAM 71340 71340 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 630037 630037 0 0.0
RAM 73892 73892 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 627753 627753 0 0.0
RAM 74356 74356 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 647469 647469 0 0.0
RAM 76908 76908 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 601117 601117 0 0.0
RAM 68372 68372 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 620969 620969 0 0.0
RAM 71004 71004 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 620969 620969 0 0.0
RAM 71004 71004 0 0.0
efr32 lighting-app BRD4187C FLASH 929832 929824 -8 -0.0
RAM 135148 135148 0 0.0
lock-app BRD4338a FLASH 737132 737124 -8 -0.0
RAM 208436 208436 0 0.0
window-app BRD4187C FLASH 1015508 1015508 0 0.0
RAM 127084 127084 0 0.0
esp32 all-clusters-app c3devkit DRAM 94160 94160 0 0.0
FLASH 1532096 1532096 0 0.0
IRAM 82538 82538 0 0.0
m5stack DRAM 115088 115088 0 0.0
FLASH 1542190 1542190 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4632 4632 0 0.0
FLASH 2752321 2752321 0 0.0
RAM 128368 128368 0 0.0
all-clusters-app debug unknown 5416 5416 0 0.0
FLASH 6032524 6032524 0 0.0
RAM 510192 510192 0 0.0
all-clusters-minimal-app debug unknown 5312 5312 0 0.0
FLASH 5373438 5373438 0 0.0
RAM 240000 240000 0 0.0
bridge-app debug unknown 5296 5296 0 0.0
FLASH 4727646 4727646 0 0.0
RAM 217024 217024 0 0.0
chip-tool debug unknown 5832 5832 0 0.0
FLASH 12490196 12490196 0 0.0
RAM 557978 557978 0 0.0
chip-tool-ipv6only arm64 unknown 20312 20312 0 0.0
FLASH 11169836 11169836 0 0.0
RAM 607984 607984 0 0.0
fabric-admin debug unknown 5672 5672 0 0.0
FLASH 11472973 11472973 0 0.0
RAM 554714 554714 0 0.0
fabric-bridge-app debug unknown 4568 4568 0 0.0
FLASH 4483254 4483254 0 0.0
RAM 202192 202192 0 0.0
lighting-app debug+rpc+ui unknown 5968 5968 0 0.0
FLASH 5661713 5661713 0 0.0
RAM 228112 228112 0 0.0
lock-app debug unknown 5232 5232 0 0.0
FLASH 4782046 4782046 0 0.0
RAM 203840 203840 0 0.0
ota-provider-app debug unknown 4608 4608 0 0.0
FLASH 4422360 4422360 0 0.0
RAM 197824 197824 0 0.0
ota-requestor-app debug unknown 4544 4544 0 0.0
FLASH 4560968 4560968 0 0.0
RAM 202360 202360 0 0.0
shell debug unknown 4176 4176 0 0.0
FLASH 3074125 3074125 0 0.0
RAM 159112 159112 0 0.0
thermostat-no-ble arm64 unknown 9352 9352 0 0.0
FLASH 4360740 4360740 0 0.0
RAM 242296 242296 0 0.0
tv-app debug unknown 5504 5504 0 0.0
FLASH 6004853 6004853 0 0.0
RAM 583648 583648 0 0.0
tv-casting-app debug unknown 5176 5176 0 0.0
FLASH 10694013 10694013 0 0.0
RAM 645128 645128 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 908188 908188 0 0.0
RAM 142247 142247 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 880284 880284 0 0.0
RAM 140386 140386 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 839828 839828 0 0.0
RAM 141062 141062 0 0.0
nxp contact k32w0+release FLASH 577100 577100 0 0.0
RAM 70472 70472 0 0.0
k32w1+release FLASH 592400 592400 0 0.0
RAM 74456 74456 0 0.0
light k32w0+release FLASH 612544 612544 0 0.0
RAM 69944 69944 0 0.0
k32w1+release FLASH 677384 677384 0 0.0
RAM 83232 83232 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1637508 1637508 0 0.0
RAM 210928 210928 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1542956 1542956 0 0.0
RAM 207664 207664 0 0.0
light cy8ckit_062s2_43012 FLASH 1463524 1463524 0 0.0
RAM 200776 200776 0 0.0
lock cy8ckit_062s2_43012 FLASH 1462172 1462172 0 0.0
RAM 225120 225120 0 0.0
qpg lighting-app qpg6105+debug FLASH 655596 655596 0 0.0
RAM 105148 105148 0 0.0
lock-app qpg6105+debug FLASH 612896 612896 0 0.0
RAM 99632 99632 0 0.0
stm32 light STM32WB5MM-DK FLASH 477920 477920 0 0.0
RAM 144756 144756 0 0.0
telink air-quality-sensor-app tlsr9528a_retention FLASH 619760 619760 0 0.0
RAM 50936 50936 0 0.0
all-clusters-app tlsr9118bdk40d FLASH 679766 679766 0 0.0
RAM 149576 149576 0 0.0
all-clusters-minimal-app tlsr9528a FLASH 772806 772806 0 0.0
RAM 110732 110732 0 0.0
bridge-app tlsr9258a FLASH 678462 678462 0 0.0
RAM 91624 91624 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 621352 621352 0 0.0
RAM 50980 50980 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a FLASH 707216 707216 0 0.0
RAM 74316 74316 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 620216 620216 0 0.0
RAM 145580 145580 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 806302 806302 0 0.0
RAM 99504 99504 0 0.0
lock-app-dfu tlsr9528a FLASH 654094 654094 0 0.0
RAM 67012 67012 0 0.0
ota-requestor-app tlsr9258a FLASH 696496 696496 0 0.0
RAM 91308 91308 0 0.0
pump-app-usb tlsr9518adk80d FLASH 630796 630796 0 0.0
RAM 55756 55756 0 0.0
pump-controller-app tlsr9518adk80d FLASH 608308 608308 0 0.0
RAM 53000 53000 0 0.0
shell tlsr9518adk80d FLASH 466810 466810 0 0.0
RAM 68660 68660 0 0.0
smoke_co_alarm-app tlsr9528a_retention FLASH 628120 628120 0 0.0
RAM 52696 52696 0 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d FLASH 652130 652130 0 0.0
RAM 56636 56636 0 0.0
thermostat tlsr9518adk80d FLASH 633110 633110 0 0.0
RAM 53380 53380 0 0.0
window-covering tlsr9118bdk40d FLASH 522270 522270 0 0.0
RAM 98536 98536 0 0.0
tizen all-clusters-app arm unknown 1588 1588 0 0.0
FLASH 1709228 1709228 0 0.0
RAM 51836 51836 0 0.0
chip-tool-ubsan arm unknown 2404 2404 0 0.0
FLASH 16609890 16609890 0 0.0
RAM 7294528 7294528 0 0.0

@woody-apple woody-apple closed this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants