Skip to content

Commit a42570b

Browse files
arkqandy31415
andauthored
Setup bloat reports for Tizen CI builds (#33729)
* Setup bloat reports for Tizen CI builds * Apply suggestions from code review Co-authored-by: Andrei Litvin <andy314@gmail.com> * Configuration for Tizen --------- Co-authored-by: Andrei Litvin <andy314@gmail.com>
1 parent 3cc96a1 commit a42570b

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

.github/workflows/examples-tizen.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
with:
5151
platform: tizen
5252

53+
- name: Set up environment for size reports
54+
uses: ./.github/actions/setup-size-reports
55+
if: ${{ !env.ACT }}
56+
with:
57+
gh-context: ${{ toJson(github) }}
58+
5359
- name: Build Tizen examples
5460
run: |
5561
./scripts/run_in_build_env.sh \
@@ -61,3 +67,20 @@ jobs:
6167
build \
6268
--copy-artifacts-to out/artifacts \
6369
"
70+
71+
- name: Bloat report - chip-tool
72+
run: |
73+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
74+
tizen arm chip-tool-ubsan out/tizen-arm-chip-tool-ubsan/chip-tool \
75+
/tmp/bloat_reports/
76+
- name: Bloat report - all-clusters-app
77+
run: |
78+
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
79+
tizen arm all-clusters-app out/tizen-arm-all-clusters/chip-all-clusters-app \
80+
/tmp/bloat_reports/
81+
82+
- name: Uploading Size Reports
83+
uses: ./.github/actions/upload-size-reports
84+
if: ${{ !env.ACT }}
85+
with:
86+
platform-name: Tizen
+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Copyright (c) 2024 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Memory tools default configuation for Tizen.
16+
17+
{
18+
'section': {
19+
# By default, only these sections will be included
20+
# when operating by sections.
21+
'default': [
22+
'.text', '.data', '.data.rel.ro', '.bss', '.dynamic', '.got',
23+
'.init', '.init_array', '.rodata'
24+
]
25+
},
26+
'region': {
27+
# Regions are sets of sections that can be used for aggregate reports.
28+
'sections': {
29+
'FLASH': [
30+
".dynstr",
31+
".dynsym",
32+
".eh_frame_hdr",
33+
".eh_frame",
34+
".fini",
35+
".gcc_except_table",
36+
".gnu.version_d",
37+
".gnu.version_r",
38+
".gnu.version",
39+
".hash",
40+
".init",
41+
".interp",
42+
".note.ABI-tag",
43+
".rodata1",
44+
".rodata",
45+
".strtab",
46+
".symtab",
47+
".text",
48+
],
49+
'RAM': [
50+
".bss",
51+
".ctors",
52+
".data1",
53+
".data.rel.ro",
54+
".data",
55+
".dtors",
56+
".dynamic",
57+
".fini_array",
58+
".got.plt",
59+
".init_array",
60+
".jcr",
61+
".preinit_array",
62+
".tbss",
63+
".tdata",
64+
]
65+
}
66+
},
67+
}

0 commit comments

Comments
 (0)