Skip to content

Commit dad15a9

Browse files
committed
Add the performance test program
This program measures the runtime for the compositing functions. We can observe the runtime change with the compositing size.
1 parent 09c9686 commit dad15a9

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*.a
55
demo-*
66
.demo-*
7+
perf_tester
8+
.perf_tester
79

810
# Swap
911
[._]*.s[a-v][a-z]

Makefile

+9-6
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,20 @@ libtwin.a_files-y += backend/fbdev.c
110110
libtwin.a_files-y += backend/linux_input.c
111111
endif
112112

113-
# Standalone application
113+
# Performance tester
114+
114115
ifeq ($(CONFIG_PERFORMANCE_TEST), y)
115-
target-y += demo-$(BACKEND)
116-
demo-$(BACKEND)_depends-y += $(target.a-y)
117-
demo-$(BACKEND)_files-y = apps/perf.c
118-
demo-$(BACKEND)_includes-y := include
119-
demo-$(BACKEND)_ldflags-y := \
116+
target-$(CONFIG_PERFORMANCE_TEST) += perf_tester
117+
perf_tester_depends-y += $(target.a-y)
118+
perf_tester_files-y += apps/perf.c
119+
perf_tester_includes-y := include
120+
perf_tester_ldflags-y := \
120121
$(target.a-y) \
121122
$(TARGET_LIBS)
122123
endif
123124

125+
# Standalone application
126+
124127
ifeq ($(CONFIG_DEMO_APPLICATIONS), y)
125128
target-y += demo-$(BACKEND)
126129
demo-$(BACKEND)_depends-y += $(target.a-y)

configs/Kconfig

+9-5
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,19 @@ config LOADER_GIF
5858

5959
endmenu
6060

61-
choice
62-
prompt "Application Selection"
63-
default DEMO_APPLICATIONS
61+
menu "Performance Testers"
6462

6563
config PERFORMANCE_TEST
66-
bool "Built performance test"
64+
bool "Build composite tester"
65+
default y
66+
67+
endmenu
68+
69+
menu "Demo Applications"
6770

6871
config DEMO_APPLICATIONS
6972
bool "Build demo applications"
73+
default y
7074

7175
config DEMO_MULTI
7276
bool "Build multi demo"
@@ -102,4 +106,4 @@ config DEMO_ANIMATION
102106
bool "Build animation demo"
103107
default y
104108
depends on DEMO_APPLICATIONS
105-
endchoice
109+
endmenu

0 commit comments

Comments
 (0)