From 4a4d5775746d6d8680277be34c2be5f4d611b76d Mon Sep 17 00:00:00 2001 From: _VIFEXTech Date: Sun, 4 Feb 2024 20:53:51 +0800 Subject: [PATCH] fix(sysmon): fix build break (#5585) Signed-off-by: pengyiqiang Co-authored-by: pengyiqiang --- src/others/sysmon/lv_sysmon.c | 2 +- tests/src/lv_test_conf.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/others/sysmon/lv_sysmon.c b/src/others/sysmon/lv_sysmon.c index c07fa95a5..067064998 100644 --- a/src/others/sysmon/lv_sysmon.c +++ b/src/others/sysmon/lv_sysmon.c @@ -205,7 +205,7 @@ static void perf_observer_cb(lv_observer_t * observer, lv_subject_t * subject) "refr %" LV_PRIu32 "ms (render %" LV_PRIu32 "ms | flush %" LV_PRIu32 "ms), " "CPU %" LV_PRIu32 "%%\n", perf->calculated.fps, perf->measured.refr_cnt, perf->measured.render_cnt, perf->measured.flush_cnt, - perf->calculated.refr_avg_time, perf->calculated.render_real_avg_time, perf->calculated.flush_avg_time, + perf->calculated.refr_avg_time, perf->calculated.render_avg_time, perf->calculated.flush_avg_time, perf->calculated.cpu); #else lv_label_set_text_fmt( diff --git a/tests/src/lv_test_conf.h b/tests/src/lv_test_conf.h index 841a8b303..cdbd77999 100644 --- a/tests/src/lv_test_conf.h +++ b/tests/src/lv_test_conf.h @@ -82,6 +82,9 @@ typedef void * lv_user_data_t; /* Simulate VG-Lite hardware using ThorVG */ #define LV_USE_VG_LITE_THORVG 1 +/* Enable performance monitor log mode for build test */ +#define LV_USE_PERF_MONITOR_LOG_MODE 1 + #include "lv_test_conf_full.h" #elif LV_TEST_OPTION == 4 #define LV_COLOR_DEPTH 24