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

Use iterator to read supported calendar types #17037

Merged
merged 1 commit into from
Apr 5, 2022
Merged

Use iterator to read supported calendar types #17037

merged 1 commit into from
Apr 5, 2022

Conversation

yufengwangca
Copy link
Contributor

Problem

What is being fixed? Examples:

  • Same as Use iteration pattern to get the fixed user label list #16861, vendor found it is difficult to implement the ReadSupportedCalendarTypes with current API in PlatformMgr.
    Currently, API GetSupportedCalendarTypes returns a AttributeList with a list of CalendarTypes, this solution needs vendor pre-allocate a buffer to store those CalendarTypes loaded from the persistent storage, and this buffer need to be kept even after function GetSupportedCalendarTypes returns. But it is hard to know how to release this buffer later since different platforms use different mechanism to allocate the memory.

Need to figure out a way so that vendor do not need to pre-allocate memory to store the supported Calendar Types.

Change overview

Use iterator to read supported calendar types

Testing

How was this tested? (at least one bullet point required)

yufengw@yufengw-SEi:~/connectedhomeip/out/debug/standalone$ ./chip-tool timeformatlocalization read supported-calendar-types 12344321 0
....
[1649126801.046049][309924:309929] CHIP:DMG: ReportDataMessage =
[1649126801.046078][309924:309929] CHIP:DMG: {
[1649126801.046101][309924:309929] CHIP:DMG: 	AttributeReportIBs =
[1649126801.046140][309924:309929] CHIP:DMG: 	[
[1649126801.046164][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.046203][309924:309929] CHIP:DMG: 		{
[1649126801.046228][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.046257][309924:309929] CHIP:DMG: 			{
[1649126801.046287][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.046315][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.046383][309924:309929] CHIP:DMG: 				{
[1649126801.046430][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.046471][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.046502][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.046530][309924:309929] CHIP:DMG: 				}
[1649126801.046563][309924:309929] CHIP:DMG: 					
[1649126801.046591][309924:309929] CHIP:DMG: 					Data = [
[1649126801.046621][309924:309929] CHIP:DMG: 						
[1649126801.046651][309924:309929] CHIP:DMG: 					],
[1649126801.046677][309924:309929] CHIP:DMG: 			},
[1649126801.046713][309924:309929] CHIP:DMG: 			
[1649126801.046737][309924:309929] CHIP:DMG: 		},
[1649126801.046786][309924:309929] CHIP:DMG: 		
[1649126801.046809][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.046846][309924:309929] CHIP:DMG: 		{
[1649126801.046870][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.046897][309924:309929] CHIP:DMG: 			{
[1649126801.046926][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.046952][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.046980][309924:309929] CHIP:DMG: 				{
[1649126801.047008][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.047037][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.047067][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.047094][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.047121][309924:309929] CHIP:DMG: 				}
[1649126801.047154][309924:309929] CHIP:DMG: 					
[1649126801.047184][309924:309929] CHIP:DMG: 					Data = 0, 
[1649126801.047210][309924:309929] CHIP:DMG: 			},
[1649126801.047244][309924:309929] CHIP:DMG: 			
[1649126801.047268][309924:309929] CHIP:DMG: 		},
[1649126801.047314][309924:309929] CHIP:DMG: 		
[1649126801.047337][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.047373][309924:309929] CHIP:DMG: 		{
[1649126801.047397][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.047424][309924:309929] CHIP:DMG: 			{
[1649126801.047451][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.047476][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.047504][309924:309929] CHIP:DMG: 				{
[1649126801.047531][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.047560][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.047589][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.047617][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.047643][309924:309929] CHIP:DMG: 				}
[1649126801.047675][309924:309929] CHIP:DMG: 					
[1649126801.047704][309924:309929] CHIP:DMG: 					Data = 1, 
[1649126801.047730][309924:309929] CHIP:DMG: 			},
[1649126801.047763][309924:309929] CHIP:DMG: 			
[1649126801.047787][309924:309929] CHIP:DMG: 		},
[1649126801.047833][309924:309929] CHIP:DMG: 		
[1649126801.047856][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.047891][309924:309929] CHIP:DMG: 		{
[1649126801.047915][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.047941][309924:309929] CHIP:DMG: 			{
[1649126801.047968][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.047994][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.048021][309924:309929] CHIP:DMG: 				{
[1649126801.048048][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.048077][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.048107][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.048134][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.048161][309924:309929] CHIP:DMG: 				}
[1649126801.048193][309924:309929] CHIP:DMG: 					
[1649126801.048220][309924:309929] CHIP:DMG: 					Data = 2, 
[1649126801.048246][309924:309929] CHIP:DMG: 			},
[1649126801.048280][309924:309929] CHIP:DMG: 			
[1649126801.048303][309924:309929] CHIP:DMG: 		},
[1649126801.048349][309924:309929] CHIP:DMG: 		
[1649126801.048372][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.048408][309924:309929] CHIP:DMG: 		{
[1649126801.048432][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.048458][309924:309929] CHIP:DMG: 			{
[1649126801.048484][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.048510][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.048537][309924:309929] CHIP:DMG: 				{
[1649126801.048564][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.048593][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.048622][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.048649][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.048676][309924:309929] CHIP:DMG: 				}
[1649126801.048707][309924:309929] CHIP:DMG: 					
[1649126801.048735][309924:309929] CHIP:DMG: 					Data = 3, 
[1649126801.048761][309924:309929] CHIP:DMG: 			},
[1649126801.048794][309924:309929] CHIP:DMG: 			
[1649126801.048818][309924:309929] CHIP:DMG: 		},
[1649126801.048864][309924:309929] CHIP:DMG: 		
[1649126801.048887][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.048921][309924:309929] CHIP:DMG: 		{
[1649126801.048945][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.048972][309924:309929] CHIP:DMG: 			{
[1649126801.048998][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.049024][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.049052][309924:309929] CHIP:DMG: 				{
[1649126801.049079][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.049108][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.049136][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.049164][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.049190][309924:309929] CHIP:DMG: 				}
[1649126801.049222][309924:309929] CHIP:DMG: 					
[1649126801.049249][309924:309929] CHIP:DMG: 					Data = 4, 
[1649126801.049276][309924:309929] CHIP:DMG: 			},
[1649126801.049309][309924:309929] CHIP:DMG: 			
[1649126801.049333][309924:309929] CHIP:DMG: 		},
[1649126801.049379][309924:309929] CHIP:DMG: 		
[1649126801.049403][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.049438][309924:309929] CHIP:DMG: 		{
[1649126801.049462][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.049488][309924:309929] CHIP:DMG: 			{
[1649126801.049515][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.049541][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.049569][309924:309929] CHIP:DMG: 				{
[1649126801.049596][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.049624][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.049653][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.049681][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.049707][309924:309929] CHIP:DMG: 				}
[1649126801.049739][309924:309929] CHIP:DMG: 					
[1649126801.049767][309924:309929] CHIP:DMG: 					Data = 5, 
[1649126801.049793][309924:309929] CHIP:DMG: 			},
[1649126801.049827][309924:309929] CHIP:DMG: 			
[1649126801.049850][309924:309929] CHIP:DMG: 		},
[1649126801.049896][309924:309929] CHIP:DMG: 		
[1649126801.049919][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.049955][309924:309929] CHIP:DMG: 		{
[1649126801.049979][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.050005][309924:309929] CHIP:DMG: 			{
[1649126801.050032][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.050058][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.050085][309924:309929] CHIP:DMG: 				{
[1649126801.050113][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.050141][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.050170][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.050197][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.050224][309924:309929] CHIP:DMG: 				}
[1649126801.050256][309924:309929] CHIP:DMG: 					
[1649126801.050284][309924:309929] CHIP:DMG: 					Data = 6, 
[1649126801.050310][309924:309929] CHIP:DMG: 			},
[1649126801.050343][309924:309929] CHIP:DMG: 			
[1649126801.050394][309924:309929] CHIP:DMG: 		},
[1649126801.050436][309924:309929] CHIP:DMG: 		
[1649126801.050460][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.050496][309924:309929] CHIP:DMG: 		{
[1649126801.050520][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.050546][309924:309929] CHIP:DMG: 			{
[1649126801.050573][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.050598][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.050626][309924:309929] CHIP:DMG: 				{
[1649126801.050653][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.050682][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.050711][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.050738][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.050764][309924:309929] CHIP:DMG: 				}
[1649126801.050796][309924:309929] CHIP:DMG: 					
[1649126801.050824][309924:309929] CHIP:DMG: 					Data = 8, 
[1649126801.050850][309924:309929] CHIP:DMG: 			},
[1649126801.050884][309924:309929] CHIP:DMG: 			
[1649126801.050908][309924:309929] CHIP:DMG: 		},
[1649126801.050953][309924:309929] CHIP:DMG: 		
[1649126801.050976][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.051012][309924:309929] CHIP:DMG: 		{
[1649126801.051036][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.051062][309924:309929] CHIP:DMG: 			{
[1649126801.051088][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.051114][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.051141][309924:309929] CHIP:DMG: 				{
[1649126801.051168][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.051196][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.051225][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.051253][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.051280][309924:309929] CHIP:DMG: 				}
[1649126801.051312][309924:309929] CHIP:DMG: 					
[1649126801.051339][309924:309929] CHIP:DMG: 					Data = 9, 
[1649126801.051365][309924:309929] CHIP:DMG: 			},
[1649126801.051398][309924:309929] CHIP:DMG: 			
[1649126801.051422][309924:309929] CHIP:DMG: 		},
[1649126801.051467][309924:309929] CHIP:DMG: 		
[1649126801.051491][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.051527][309924:309929] CHIP:DMG: 		{
[1649126801.051551][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.051577][309924:309929] CHIP:DMG: 			{
[1649126801.051604][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.051630][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.051657][309924:309929] CHIP:DMG: 				{
[1649126801.051684][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.051713][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.051742][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.051769][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.051796][309924:309929] CHIP:DMG: 				}
[1649126801.051828][309924:309929] CHIP:DMG: 					
[1649126801.051856][309924:309929] CHIP:DMG: 					Data = 10, 
[1649126801.051882][309924:309929] CHIP:DMG: 			},
[1649126801.051916][309924:309929] CHIP:DMG: 			
[1649126801.051940][309924:309929] CHIP:DMG: 		},
[1649126801.051985][309924:309929] CHIP:DMG: 		
[1649126801.052009][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.052044][309924:309929] CHIP:DMG: 		{
[1649126801.052068][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.052094][309924:309929] CHIP:DMG: 			{
[1649126801.052121][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.052147][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.052175][309924:309929] CHIP:DMG: 				{
[1649126801.052202][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.052231][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.052259][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.052287][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.052313][309924:309929] CHIP:DMG: 				}
[1649126801.052345][309924:309929] CHIP:DMG: 					
[1649126801.052373][309924:309929] CHIP:DMG: 					Data = 11, 
[1649126801.052400][309924:309929] CHIP:DMG: 			},
[1649126801.052433][309924:309929] CHIP:DMG: 			
[1649126801.052457][309924:309929] CHIP:DMG: 		},
[1649126801.052502][309924:309929] CHIP:DMG: 		
[1649126801.052525][309924:309929] CHIP:DMG: 		AttributeReportIB =
[1649126801.052561][309924:309929] CHIP:DMG: 		{
[1649126801.052585][309924:309929] CHIP:DMG: 			AttributeDataIB =
[1649126801.052611][309924:309929] CHIP:DMG: 			{
[1649126801.052637][309924:309929] CHIP:DMG: 				DataVersion = 0x47157b0e,
[1649126801.052663][309924:309929] CHIP:DMG: 				AttributePathIB =
[1649126801.052691][309924:309929] CHIP:DMG: 				{
[1649126801.052717][309924:309929] CHIP:DMG: 					Endpoint = 0x0,
[1649126801.052747][309924:309929] CHIP:DMG: 					Cluster = 0x2c,
[1649126801.052776][309924:309929] CHIP:DMG: 					Attribute = 0x0000_0002,
[1649126801.052803][309924:309929] CHIP:DMG: 					ListIndex = Null,
[1649126801.052830][309924:309929] CHIP:DMG: 				}
[1649126801.052861][309924:309929] CHIP:DMG: 					
[1649126801.052889][309924:309929] CHIP:DMG: 					Data = 7, 
[1649126801.052915][309924:309929] CHIP:DMG: 			},
[1649126801.052948][309924:309929] CHIP:DMG: 			
[1649126801.052972][309924:309929] CHIP:DMG: 		},
[1649126801.053006][309924:309929] CHIP:DMG: 		
[1649126801.053029][309924:309929] CHIP:DMG: 	],
[1649126801.053180][309924:309929] CHIP:DMG: 	
[1649126801.053206][309924:309929] CHIP:DMG: 	SuppressResponse = true, 
[1649126801.053232][309924:309929] CHIP:DMG: 	InteractionModelRevision = 1
[1649126801.053254][309924:309929] CHIP:DMG: }
[1649126801.055027][309924:309929] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002C Attribute 0x0000_0002 DataVersion: 1192590094
[1649126801.055139][309924:309929] CHIP:TOO:   SupportedCalendarTypes: 12 entries
[1649126801.055177][309924:309929] CHIP:TOO:     [1]: 0
[1649126801.055206][309924:309929] CHIP:TOO:     [2]: 1
[1649126801.055233][309924:309929] CHIP:TOO:     [3]: 2
[1649126801.055259][309924:309929] CHIP:TOO:     [4]: 3
[1649126801.055285][309924:309929] CHIP:TOO:     [5]: 4
[1649126801.055311][309924:309929] CHIP:TOO:     [6]: 5
[1649126801.055337][309924:309929] CHIP:TOO:     [7]: 6
[1649126801.055362][309924:309929] CHIP:TOO:     [8]: 8
[1649126801.055387][309924:309929] CHIP:TOO:     [9]: 9
[1649126801.055414][309924:309929] CHIP:TOO:     [10]: 10
[1649126801.055440][309924:309929] CHIP:TOO:     [11]: 11
[1649126801.055466][309924:309929] CHIP:TOO:     [12]: 7

@github-actions
Copy link

github-actions bot commented Apr 5, 2022

PR #17037: Size comparison from 913aca0 to 4506109

Increases above 0.2%:

platform target config section 913aca0 4506109 change % change
linux thermostat-no-ble arm64 .got 4632 4648 16 0.3
Increases (5 builds for cc13x2_26x2, linux)
platform target config section 913aca0 4506109 change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read/write) 181200 181288 88 0.0
pump-app LP_CC2652R7 (read/write) 162896 162984 88 0.1
pump-controller-app LP_CC2652R7 (read/write) 180408 180488 80 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10083572 10084820 1248 0.0
(read/write) 486977 487137 160 0.0
.data.rel.ro 384712 384856 144 0.0
.got 57008 57024 16 0.0
.rodata 508404 508452 48 0.0
.text 8484324 8485188 864 0.0
thermostat-no-ble arm64 (read only) 2324428 2324572 144 0.0
(read/write) 149441 149601 160 0.1
.data.rel.ro 77704 77848 144 0.2
.got 4632 4648 16 0.3
.rodata 143308 143356 48 0.0
Decreases (18 builds for cc13x2_26x2, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 913aca0 4506109 change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read only) 670511 670423 -88 -0.0
.text 590056 589968 -88 -0.0
lock-mtd LP_CC2652R7 (read only) 619639 619551 -88 -0.0
.text 539288 539200 -88 -0.0
pump-app LP_CC2652R7 (read only) 689983 689895 -88 -0.0
.text 607436 607348 -88 -0.0
pump-controller-app LP_CC2652R7 (read only) 672207 672127 -80 -0.0
.text 593324 593244 -80 -0.0
efr32 lighting-app BRD4161A (read only) 919164 919020 -144 -0.0
.text 919156 919012 -144 -0.0
BRD4161A+rpc (read only) 947060 946916 -144 -0.0
.text 947052 946908 -144 -0.0
window-app BRD4161A (read only) 854380 854220 -160 -0.0
.text 854372 854212 -160 -0.0
esp32 all-clusters-app c3devkit (read only) 988094 988044 -50 -0.0
.flash.text 988094 988044 -50 -0.0
m5stack (read only) 1040455 1040415 -40 -0.0
.flash.text 1035071 1035031 -40 -0.0
k32w light k32w061+release (read/write) 710388 710308 -80 -0.0
.text 624732 624652 -80 -0.0
lock k32w061+release (read/write) 709784 709720 -64 -0.0
.text 624088 624024 -64 -0.0
linux thermostat-no-ble arm64 .text 1955408 1955168 -240 -0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2362700 2362636 -64 -0.0
.text 1325300 1325236 -64 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151231 1151167 -64 -0.0
text 789708 789640 -68 -0.0
p6 all-clusters-app default (read/write) 2507528 2507368 -160 -0.0
.text 1465792 1465632 -160 -0.0
light-app default (read/write) 2408704 2408560 -144 -0.0
.text 1366968 1366824 -144 -0.0
lock-app default (read/write) 2372352 2372192 -160 -0.0
.text 1330616 1330456 -160 -0.0
telink lighting-app tlsr9518adk80d (read/write) 794808 794752 -56 -0.0
text 564354 564296 -58 -0.0
Full report (19 builds for cc13x2_26x2, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 913aca0 4506109 change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read only) 670511 670423 -88 -0.0
(read/write) 181200 181288 88 0.0
.bss 81752 81752 0 0.0
.data 3164 3164 0 0.0
.rodata 79975 79975 0 0.0
.text 590056 589968 -88 -0.0
lock-mtd LP_CC2652R7 (read only) 619639 619551 -88 -0.0
(read/write) 154500 154500 0 0.0
.bss 77480 77480 0 0.0
.data 3164 3164 0 0.0
.rodata 79863 79863 0 0.0
.text 539288 539200 -88 -0.0
pump-app LP_CC2652R7 (read only) 689983 689895 -88 -0.0
(read/write) 162896 162984 88 0.1
.bss 82152 82152 0 0.0
.data 3196 3196 0 0.0
.rodata 82063 82063 0 0.0
.text 607436 607348 -88 -0.0
pump-controller-app LP_CC2652R7 (read only) 672207 672127 -80 -0.0
(read/write) 180408 180488 80 0.0
.bss 81888 81888 0 0.0
.data 3160 3160 0 0.0
.rodata 78399 78399 0 0.0
.text 593324 593244 -80 -0.0
efr32 lighting-app BRD4161A (read only) 919164 919020 -144 -0.0
(read/write) 129784 129784 0 0.0
.bss 127792 127792 0 0.0
.data 1992 1992 0 0.0
.text 919156 919012 -144 -0.0
BRD4161A+rpc (read only) 947060 946916 -144 -0.0
(read/write) 145732 145732 0 0.0
.bss 143560 143560 0 0.0
.data 2172 2172 0 0.0
.text 947052 946908 -144 -0.0
window-app BRD4161A (read only) 854380 854220 -160 -0.0
(read/write) 127808 127808 0 0.0
.bss 125936 125936 0 0.0
.data 1872 1872 0 0.0
.text 854372 854212 -160 -0.0
esp32 all-clusters-app c3devkit (read only) 988094 988044 -50 -0.0
(read/write) 1460842 1460842 0 0.0
.dram0.bss 62944 62944 0 0.0
.dram0.data 14196 14196 0 0.0
.flash.rodata 198224 198224 0 0.0
.flash.text 988094 988044 -50 -0.0
.iram0.text 62572 62572 0 0.0
m5stack (read only) 1040455 1040415 -40 -0.0
(read/write) 461840 461840 0 0.0
.dram0.bss 68472 68472 0 0.0
.dram0.data 34056 34056 0 0.0
.flash.rodata 227168 227168 0 0.0
.flash.text 1035071 1035031 -40 -0.0
.iram0.text 123415 123415 0 0.0
k32w light k32w061+release (read/write) 710388 710308 -80 -0.0
.bss 77952 77952 0 0.0
.data 1904 1904 0 0.0
.text 624732 624652 -80 -0.0
lock k32w061+release (read/write) 709784 709720 -64 -0.0
.bss 77952 77952 0 0.0
.data 1944 1944 0 0.0
.text 624088 624024 -64 -0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10083572 10084820 1248 0.0
(read/write) 486977 487137 160 0.0
.bss 40337 40337 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 384712 384856 144 0.0
.dynamic 560 560 0 0.0
.got 57008 57024 16 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 508404 508452 48 0.0
.text 8484324 8485188 864 0.0
thermostat-no-ble arm64 (read only) 2324428 2324572 144 0.0
(read/write) 149441 149601 160 0.1
.bss 62945 62945 0 0.0
.data 1136 1136 0 0.0
.data.rel.ro 77704 77848 144 0.2
.dynamic 560 560 0 0.0
.got 4632 4648 16 0.3
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 143308 143356 48 0.0
.text 1955408 1955168 -240 -0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2362700 2362636 -64 -0.0
.bss 185036 185036 0 0.0
.data 5784 5784 0 0.0
.text 1325300 1325236 -64 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151231 1151167 -64 -0.0
bss 143060 143060 0 0.0
rodata 143592 143592 0 0.0
text 789708 789640 -68 -0.0
p6 all-clusters-app default (read/write) 2507528 2507368 -160 -0.0
.bss 118472 118472 0 0.0
.data 2672 2672 0 0.0
.text 1465792 1465632 -160 -0.0
light-app default (read/write) 2408704 2408560 -144 -0.0
.bss 111928 111928 0 0.0
.data 2528 2528 0 0.0
.text 1366968 1366824 -144 -0.0
lock-app default (read/write) 2372352 2372192 -160 -0.0
.bss 111672 111672 0 0.0
.data 2488 2488 0 0.0
.text 1330616 1330456 -160 -0.0
telink lighting-app tlsr9518adk80d (read/write) 794808 794752 -56 -0.0
bss 70288 70288 0 0.0
noinit 40416 40416 0 0.0
text 564354 564296 -58 -0.0

@github-actions
Copy link

github-actions bot commented Apr 5, 2022

PR #17037: Size comparison from a957a5f to c9060bf

Increases above 0.2%:

platform target config section a957a5f c9060bf change % change
linux bridge-app debug+rpc .data.rel.ro 38584 38712 128 0.3
door-lock-app debug .data.rel.ro 63704 63832 128 0.2
ota-provider-app debug .data.rel.ro 59032 59160 128 0.2
ota-requestor-app debug .data.rel.ro 61272 61400 128 0.2
thermostat-no-ble arm64 .got 4632 4648 16 0.3
Increases (14 builds for cc13x2_26x2, linux)
platform target config section a957a5f c9060bf change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read/write) 180648 180736 88 0.0
pump-app LP_CC2652R7 (read/write) 162408 162496 88 0.1
pump-controller-app LP_CC2652R7 (read/write) 179896 179976 80 0.0
linux all-clusters-app debug (read/write) 144872 145000 128 0.1
.data.rel.ro 79880 80008 128 0.2
bridge-app debug+rpc (read/write) 90296 90424 128 0.1
.data.rel.ro 38584 38712 128 0.3
chip-tool debug (read only) 10632245 10633141 896 0.0
(read/write) 370520 370648 128 0.0
.data.rel.ro 340656 340784 128 0.0
.text 9269493 9270309 816 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 10242460 10243708 1248 0.0
(read/write) 490609 490769 160 0.0
.data.rel.ro 387648 387792 144 0.0
.got 57128 57144 16 0.0
.rodata 510412 510460 48 0.0
.text 8632292 8633156 864 0.0
door-lock-app debug (read/write) 118320 118448 128 0.1
.data.rel.ro 63704 63832 128 0.2
lighting-app debug+rpc (read/write) 125312 125440 128 0.1
.data.rel.ro 68808 68936 128 0.2
ota-provider-app debug (read/write) 113888 114016 128 0.1
.data.rel.ro 59032 59160 128 0.2
ota-requestor-app debug (read/write) 117208 117336 128 0.1
.data.rel.ro 61272 61400 128 0.2
shell debug (read/write) 148336 148464 128 0.1
.data.rel.ro 74424 74552 128 0.2
thermostat-no-ble arm64 (read only) 2327068 2327212 144 0.0
(read/write) 149521 149681 160 0.1
.data.rel.ro 77760 77904 144 0.2
.got 4632 4648 16 0.3
.rodata 143340 143388 48 0.0
tv-app debug (read/write) 249984 250112 128 0.1
.data.rel.ro 75040 75168 128 0.2
Decreases (27 builds for cc13x2_26x2, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a957a5f c9060bf change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read only) 670815 670727 -88 -0.0
.text 590296 590208 -88 -0.0
lock-mtd LP_CC2652R7 (read only) 619943 619855 -88 -0.0
.text 539528 539440 -88 -0.0
pump-app LP_CC2652R7 (read only) 690231 690143 -88 -0.0
.text 607620 607532 -88 -0.0
pump-controller-app LP_CC2652R7 (read only) 672471 672391 -80 -0.0
.text 593524 593444 -80 -0.0
efr32 lighting-app BRD4161A (read only) 919564 919420 -144 -0.0
.text 919556 919412 -144 -0.0
BRD4161A+rpc (read only) 947476 947332 -144 -0.0
.text 947468 947324 -144 -0.0
window-app BRD4161A (read only) 854732 854588 -144 -0.0
.text 854724 854580 -144 -0.0
esp32 all-clusters-app c3devkit (read only) 988422 988372 -50 -0.0
.flash.text 988422 988372 -50 -0.0
m5stack (read only) 1040787 1040751 -36 -0.0
.flash.text 1035403 1035367 -36 -0.0
k32w light k32w061+release (read/write) 681640 681576 -64 -0.0
.text 595664 595600 -64 -0.0
lock k32w061+release (read/write) 686120 686056 -64 -0.0
.text 599600 599536 -64 -0.0
linux all-clusters-app debug (read only) 2595721 2595177 -544 -0.0
.rodata 221285 220965 -320 -0.1
.text 2206418 2205954 -464 -0.0
bridge-app debug+rpc (read only) 1804485 1803973 -512 -0.0
.rodata 147513 147225 -288 -0.2
.text 1540341 1539877 -464 -0.0
chip-tool debug .rodata 535949 535789 -160 -0.0
door-lock-app debug (read only) 2075969 2075489 -480 -0.0
.rodata 185513 185257 -256 -0.1
.text 1736642 1736178 -464 -0.0
lighting-app debug+rpc (read only) 2255481 2254969 -512 -0.0
.rodata 179625 179337 -288 -0.2
.text 1912578 1912114 -464 -0.0
ota-provider-app debug (read only) 2013889 2013329 -560 -0.0
.rodata 171403 171067 -336 -0.2
.text 1687762 1687298 -464 -0.0
ota-requestor-app debug (read only) 2043465 2042969 -496 -0.0
.rodata 167892 167620 -272 -0.2
.text 1719074 1718610 -464 -0.0
shell debug (read only) 2491433 2490889 -544 -0.0
.rodata 212978 212658 -320 -0.2
.text 2119922 2119458 -464 -0.0
thermostat-no-ble arm64 .text 1957888 1957648 -240 -0.0
tv-app debug (read only) 2764873 2764393 -480 -0.0
.rodata 211467 211211 -256 -0.1
.text 2374578 2374114 -464 -0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2363084 2363020 -64 -0.0
.text 1325684 1325620 -64 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1149495 1149431 -64 -0.0
text 790228 790160 -68 -0.0
p6 all-clusters-app default (read/write) 2507928 2507784 -144 -0.0
.text 1466192 1466048 -144 -0.0
light-app default (read/write) 2409120 2408960 -160 -0.0
.text 1367384 1367224 -160 -0.0
lock-app default (read/write) 2372816 2372672 -144 -0.0
.text 1331080 1330936 -144 -0.0
telink lighting-app tlsr9518adk80d (read/write) 794888 794824 -64 -0.0
text 564606 564548 -58 -0.0
Full report (28 builds for cc13x2_26x2, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a957a5f c9060bf change % change
cc13x2_26x2 lock-ftd LP_CC2652R7 (read only) 670815 670727 -88 -0.0
(read/write) 180648 180736 88 0.0
.bss 81504 81504 0 0.0
.data 3164 3164 0 0.0
.rodata 80039 80039 0 0.0
.text 590296 590208 -88 -0.0
lock-mtd LP_CC2652R7 (read only) 619943 619855 -88 -0.0
(read/write) 154252 154252 0 0.0
.bss 77232 77232 0 0.0
.data 3164 3164 0 0.0
.rodata 79927 79927 0 0.0
.text 539528 539440 -88 -0.0
pump-app LP_CC2652R7 (read only) 690231 690143 -88 -0.0
(read/write) 162408 162496 88 0.1
.bss 81912 81912 0 0.0
.data 3196 3196 0 0.0
.rodata 82127 82127 0 0.0
.text 607620 607532 -88 -0.0
pump-controller-app LP_CC2652R7 (read only) 672471 672391 -80 -0.0
(read/write) 179896 179976 80 0.0
.bss 81640 81640 0 0.0
.data 3160 3160 0 0.0
.rodata 78463 78463 0 0.0
.text 593524 593444 -80 -0.0
efr32 lighting-app BRD4161A (read only) 919564 919420 -144 -0.0
(read/write) 129536 129536 0 0.0
.bss 127544 127544 0 0.0
.data 1992 1992 0 0.0
.text 919556 919412 -144 -0.0
BRD4161A+rpc (read only) 947476 947332 -144 -0.0
(read/write) 145484 145484 0 0.0
.bss 143312 143312 0 0.0
.data 2172 2172 0 0.0
.text 947468 947324 -144 -0.0
window-app BRD4161A (read only) 854732 854588 -144 -0.0
(read/write) 127560 127560 0 0.0
.bss 125688 125688 0 0.0
.data 1872 1872 0 0.0
.text 854724 854580 -144 -0.0
esp32 all-clusters-app c3devkit (read only) 988422 988372 -50 -0.0
(read/write) 1460922 1460922 0 0.0
.dram0.bss 62952 62952 0 0.0
.dram0.data 14196 14196 0 0.0
.flash.rodata 198288 198288 0 0.0
.flash.text 988422 988372 -50 -0.0
.iram0.text 62572 62572 0 0.0
m5stack (read only) 1040787 1040751 -36 -0.0
(read/write) 461912 461912 0 0.0
.dram0.bss 68480 68480 0 0.0
.dram0.data 34056 34056 0 0.0
.flash.rodata 227232 227232 0 0.0
.flash.text 1035403 1035367 -36 -0.0
.iram0.text 123415 123415 0 0.0
k32w light k32w061+release (read/write) 681640 681576 -64 -0.0
.bss 78192 78192 0 0.0
.data 1984 1984 0 0.0
.text 595664 595600 -64 -0.0
lock k32w061+release (read/write) 686120 686056 -64 -0.0
.bss 78776 78776 0 0.0
.data 1944 1944 0 0.0
.text 599600 599536 -64 -0.0
linux all-clusters-app debug (read only) 2595721 2595177 -544 -0.0
(read/write) 144872 145000 128 0.1
.bss 57664 57664 0 0.0
.data 1440 1440 0 0.0
.data.rel.ro 79880 80008 128 0.2
.dynamic 592 592 0 0.0
.got 4312 4312 0 0.0
.init 27 27 0 0.0
.init_array 960 960 0 0.0
.rodata 221285 220965 -320 -0.1
.text 2206418 2205954 -464 -0.0
bridge-app debug+rpc (read only) 1804485 1803973 -512 -0.0
(read/write) 90296 90424 128 0.1
.bss 44584 44584 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 38584 38712 128 0.3
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 147513 147225 -288 -0.2
.text 1540341 1539877 -464 -0.0
chip-tool debug (read only) 10632245 10633141 896 0.0
(read/write) 370520 370648 128 0.0
.bss 22592 22592 0 0.0
.data 1040 1040 0 0.0
.data.rel.ro 340656 340784 128 0.0
.dynamic 624 624 0 0.0
.got 4928 4928 0 0.0
.init 27 27 0 0.0
.init_array 656 656 0 0.0
.rodata 535949 535789 -160 -0.0
.text 9269493 9270309 816 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 10242460 10243708 1248 0.0
(read/write) 490609 490769 160 0.0
.bss 40897 40897 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 387648 387792 144 0.0
.dynamic 560 560 0 0.0
.got 57128 57144 16 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 510412 510460 48 0.0
.text 8632292 8633156 864 0.0
door-lock-app debug (read only) 2075969 2075489 -480 -0.0
(read/write) 118320 118448 128 0.1
.bss 47904 47904 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 63704 63832 128 0.2
.dynamic 592 592 0 0.0
.got 4256 4256 0 0.0
.init 27 27 0 0.0
.init_array 680 680 0 0.0
.rodata 185513 185257 -256 -0.1
.text 1736642 1736178 -464 -0.0
lighting-app debug+rpc (read only) 2255481 2254969 -512 -0.0
(read/write) 125312 125440 128 0.1
.bss 49216 49216 0 0.0
.data 1600 1600 0 0.0
.data.rel.ro 68808 68936 128 0.2
.dynamic 608 608 0 0.0
.got 4304 4304 0 0.0
.init 27 27 0 0.0
.init_array 760 760 0 0.0
.rodata 179625 179337 -288 -0.2
.text 1912578 1912114 -464 -0.0
ota-provider-app debug (read only) 2013889 2013329 -560 -0.0
(read/write) 113888 114016 128 0.1
.bss 47744 47744 0 0.0
.data 1384 1384 0 0.0
.data.rel.ro 59032 59160 128 0.2
.dynamic 608 608 0 0.0
.got 4456 4456 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 171403 171067 -336 -0.2
.text 1687762 1687298 -464 -0.0
ota-requestor-app debug (read only) 2043465 2042969 -496 -0.0
(read/write) 117208 117336 128 0.1
.bss 48736 48736 0 0.0
.data 1608 1608 0 0.0
.data.rel.ro 61272 61400 128 0.2
.dynamic 592 592 0 0.0
.got 4296 4296 0 0.0
.init 27 27 0 0.0
.init_array 656 656 0 0.0
.rodata 167892 167620 -272 -0.2
.text 1719074 1718610 -464 -0.0
shell debug (read only) 2491433 2490889 -544 -0.0
(read/write) 148336 148464 128 0.1
.bss 67336 67336 0 0.0
.data 848 848 0 0.0
.data.rel.ro 74424 74552 128 0.2
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 212978 212658 -320 -0.2
.text 2119922 2119458 -464 -0.0
thermostat-no-ble arm64 (read only) 2327068 2327212 144 0.0
(read/write) 149521 149681 160 0.1
.bss 62977 62977 0 0.0
.data 1136 1136 0 0.0
.data.rel.ro 77760 77904 144 0.2
.dynamic 560 560 0 0.0
.got 4632 4648 16 0.3
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 143340 143388 48 0.0
.text 1957888 1957648 -240 -0.0
tv-app debug (read only) 2764873 2764393 -480 -0.0
(read/write) 249984 250112 128 0.1
.bss 165360 165360 0 0.0
.data 3392 3392 0 0.0
.data.rel.ro 75040 75168 128 0.2
.dynamic 592 592 0 0.0
.got 4672 4672 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 211467 211211 -256 -0.1
.text 2374578 2374114 -464 -0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2363084 2363020 -64 -0.0
.bss 185052 185052 0 0.0
.data 5784 5784 0 0.0
.text 1325684 1325620 -64 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1149495 1149431 -64 -0.0
bss 135556 135556 0 0.0
rodata 145088 145088 0 0.0
text 790228 790160 -68 -0.0
p6 all-clusters-app default (read/write) 2507928 2507784 -144 -0.0
.bss 118480 118480 0 0.0
.data 2672 2672 0 0.0
.text 1466192 1466048 -144 -0.0
light-app default (read/write) 2409120 2408960 -160 -0.0
.bss 111944 111944 0 0.0
.data 2528 2528 0 0.0
.text 1367384 1367224 -160 -0.0
lock-app default (read/write) 2372816 2372672 -144 -0.0
.bss 111688 111688 0 0.0
.data 2488 2488 0 0.0
.text 1331080 1330936 -144 -0.0
telink lighting-app tlsr9518adk80d (read/write) 794888 794824 -64 -0.0
bss 70044 70044 0 0.0
noinit 40416 40416 0 0.0
text 564606 564548 -58 -0.0

@yufengwangca yufengwangca merged commit a278bfc into project-chip:master Apr 5, 2022
@yufengwangca yufengwangca deleted the pr/api/time-format branch April 5, 2022 21:01
chencheung pushed a commit to chencheung/connectedhomeip that referenced this pull request Apr 6, 2022
chencheung pushed a commit to chencheung/connectedhomeip that referenced this pull request Apr 6, 2022
andrei-menzopol pushed a commit to andrei-menzopol/connectedhomeip that referenced this pull request Apr 14, 2022
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.

4 participants