继续优化菜单RAM降低

This commit is contained in:
2026-09-08 22:24:45 +08:00
parent 6662f3a455
commit 9ead5679a1
7 changed files with 195 additions and 172 deletions
+6
View File
@@ -129,6 +129,12 @@ static int run_headless(const char * keys, const char * path)
lv_group_send_data(g, key);
}
/* 注键后 LVGL 池占用(无头模式;内存回归用,对照 ui_menu_init 基线) */
lv_mem_monitor_t mon;
lv_mem_monitor(&mon);
printf("pool after keys: used=%u free=%u\n",
(unsigned)(mon.total_size - mon.free_size), (unsigned)mon.free_size);
/* 用 snapshot 把整屏渲进独立 I1 draw_buf(避开 I1+FULL 的渲染死循环) */
lv_draw_buf_t *snap = lv_snapshot_take(lv_screen_active(), LV_COLOR_FORMAT_I1);
if (snap == NULL) {