feat(nuttx): add builtin profiler adaptation (#5415)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <nuttx/tls.h>
|
||||
#include <syslog.h>
|
||||
#include "lv_nuttx_cache.h"
|
||||
#include "lv_nuttx_profiler.h"
|
||||
|
||||
#include "../../../lvgl.h"
|
||||
|
||||
@@ -98,6 +99,10 @@ void lv_nuttx_init(const lv_nuttx_dsc_t * dsc, lv_nuttx_result_t * result)
|
||||
|
||||
lv_nuttx_cache_init();
|
||||
|
||||
#if LV_USE_PROFILER && LV_USE_PROFILER_BUILTIN
|
||||
lv_nuttx_profiler_init();
|
||||
#endif
|
||||
|
||||
if(result) {
|
||||
lv_memzero(result, sizeof(lv_nuttx_result_t));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user