mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 22:30:49 +08:00
feat(benchmark): add an API to run specific scene (#3089)
This commit is contained in:
@@ -13,6 +13,8 @@ On to top of the screen the title of the current test step, and the result of th
|
|||||||
## Run the benchmark
|
## Run the benchmark
|
||||||
- In `lv_conf.h` or equivalent places set `LV_USE_DEMO_BENCHMARK 1`
|
- In `lv_conf.h` or equivalent places set `LV_USE_DEMO_BENCHMARK 1`
|
||||||
- After `lv_init()` and initializing the drivers call `lv_demo_benchmark()`
|
- After `lv_init()` and initializing the drivers call `lv_demo_benchmark()`
|
||||||
|
- If you only want to run a specific scene for any purpose (e.g. debug, performance optimization etc.), you can call `lv_demo_benchmark_run_scene()` instead of `lv_demo_benchmark()`and pass the scene number.
|
||||||
|
|
||||||
|
|
||||||
## Interpret the result
|
## Interpret the result
|
||||||
|
|
||||||
|
|||||||
+273
-186
File diff suppressed because it is too large
Load Diff
@@ -28,6 +28,8 @@ extern "C" {
|
|||||||
**********************/
|
**********************/
|
||||||
void lv_demo_benchmark(void);
|
void lv_demo_benchmark(void);
|
||||||
|
|
||||||
|
void lv_demo_benchmark_run_scene(int_fast16_t scene_no);
|
||||||
|
|
||||||
/**********************
|
/**********************
|
||||||
* MACROS
|
* MACROS
|
||||||
**********************/
|
**********************/
|
||||||
|
|||||||
Reference in New Issue
Block a user