|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Macros | |
| #define | ZTEST_BENCHMARK_SUITE(suite, setup_fn, teardown_fn) |
| Define a benchmark suite. | |
| #define | ZTEST_BENCHMARK_SETUP_TEARDOWN(suite_name, benchmark, samples, setup_fn, teardown_fn) |
| Define a benchmark with setup and teardown functions. | |
| #define | ZTEST_BENCHMARK_TIMED_SETUP_TEARDOWN(testsuite, benchmark, duration, setup_fn, teardown_fn) |
| Define a timed benchmark with setup and teardown functions. | |
| #define | ZTEST_BENCHMARK(suite, benchmark, samples) |
| Define a benchmark without setup and teardown functions. | |
| #define | ZTEST_BENCHMARK_TIMED(suite, benchmark, duration) |
| Define a timed benchmark without setup and teardown functions. | |
| #define ZTEST_BENCHMARK | ( | suite, | |
| benchmark, | |||
| samples ) |
#include </__w/zephyr/zephyr/subsys/testsuite/ztest/include/zephyr/benchmark.h>
Define a benchmark without setup and teardown functions.
| suite | Name of the suite the benchmark belongs to |
| benchmark | Name of the benchmark |
| samples | Number of iterations to run the benchmark |
| #define ZTEST_BENCHMARK_SETUP_TEARDOWN | ( | suite_name, | |
| benchmark, | |||
| samples, | |||
| setup_fn, | |||
| teardown_fn ) |
#include </__w/zephyr/zephyr/subsys/testsuite/ztest/include/zephyr/benchmark.h>
Define a benchmark with setup and teardown functions.
| suite_name | Name of the suite the benchmark belongs to |
| benchmark | Name of the benchmark |
| samples | Number of iterations to run the benchmark |
| setup_fn | Function to run before the benchmark |
| teardown_fn | Function to run after the benchmark |
| #define ZTEST_BENCHMARK_SUITE | ( | suite, | |
| setup_fn, | |||
| teardown_fn ) |
#include </__w/zephyr/zephyr/subsys/testsuite/ztest/include/zephyr/benchmark.h>
Define a benchmark suite.
| suite | Name of the suite |
| setup_fn | Function to run before the suite |
| teardown_fn | Function to run after the suite |
| #define ZTEST_BENCHMARK_TIMED | ( | suite, | |
| benchmark, | |||
| duration ) |
#include </__w/zephyr/zephyr/subsys/testsuite/ztest/include/zephyr/benchmark.h>
Define a timed benchmark without setup and teardown functions.
| suite | Name of the suite the benchmark belongs to |
| benchmark | Name of the benchmark |
| duration | Duration in milliseconds to run the benchmark |
| #define ZTEST_BENCHMARK_TIMED_SETUP_TEARDOWN | ( | testsuite, | |
| benchmark, | |||
| duration, | |||
| setup_fn, | |||
| teardown_fn ) |
#include </__w/zephyr/zephyr/subsys/testsuite/ztest/include/zephyr/benchmark.h>
Define a timed benchmark with setup and teardown functions.
| testsuite | Name of the suite the benchmark belongs to |
| benchmark | Name of the benchmark |
| duration | Duration in milliseconds to run the benchmark |
| setup_fn | Function to run before the benchmark |
| teardown_fn | Function to run after the benchmark |