diff options
author | Andrea Grandi <agrandi@google.com> | 2022-10-21 08:27:50 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-02 01:18:54 +0000 |
commit | 79d4706f92680ed4a192b585a1db072e9e3da7ad (patch) | |
tree | 790c1d62a0493417cf496b091f828dc3d953b2d4 /test/build.mk | |
parent | 741bbd86cb48de471759c1519901202467342fca (diff) | |
download | chrome-ec-79d4706f92680ed4a192b585a1db072e9e3da7ad.tar.gz |
test: Add benchmark library (C++)
Add a benchmark library (benchmark.h) to measure the execution time of
functions. It is written in C++ to simplify the interface.
For example, it can be used to benchmark lambdas with captures.
BUG=b:246366702
BRANCH=none
TEST=test/run_device_tests.py -b bloonchipper -t benchmark
TEST=make run-benchmark
Signed-off-by: Andrea Grandi <agrandi@google.com>
Change-Id: Ibed907609a27566e386c511153fcd2d819981356
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3971378
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'test/build.mk')
-rw-r--r-- | test/build.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/build.mk b/test/build.mk index 08e2d15c9f..a4f9ee74b8 100644 --- a/test/build.mk +++ b/test/build.mk @@ -24,6 +24,7 @@ test-list-host += aes test-list-host += always_memset test-list-host += base32 test-list-host += battery_get_params_smart +test-list-host += benchmark test-list-host += bklight_lid test-list-host += bklight_passthru test-list-host += body_detection @@ -169,6 +170,7 @@ aes-y=aes.o always_memset-y=always_memset.o base32-y=base32.o battery_get_params_smart-y=battery_get_params_smart.o +benchmark-y=benchmark.o bklight_lid-y=bklight_lid.o bklight_passthru-y=bklight_passthru.o body_detection-y=body_detection.o body_detection_data_literals.o motion_common.o |