Skip to content

Commit 79f0fcb

Browse files
authored
Add the maximum memory used by LVGL in SystemInfo app. This will help the developers to size the memory buffer allocated to lvgl. (#408)
1 parent 1b6acde commit 79f0fcb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/displayapp/screens/SystemInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
175175
"#444444 BLE MAC#\n"
176176
" %02x:%02x:%02x:%02x:%02x:%02x"
177177
"\n"
178-
"#444444 Memory#\n"
178+
"#444444 LVGL Memory#\n"
179179
" #444444 used# %d (%d%%)\n"
180+
" #444444 max used# %d\n"
180181
" #444444 frag# %d%%\n"
181182
" #444444 free# %d"
182183
"\n"
@@ -189,6 +190,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
189190
bleAddr[0],
190191
(int) mon.total_size - mon.free_size,
191192
mon.used_pct,
193+
mon.max_used,
192194
mon.frag_pct,
193195
(int) mon.free_biggest_size,
194196
0);

0 commit comments

Comments
 (0)