boot/bootutil/include/bootutil/bench.h
0 → 100644
+66
−0
Loading
Add a `bootutil/bench.h` file that defines two calls
`boot_bench_start()` and `boot_bench_stop()` along with a type for the
state. These calls can be placed around blocks of code, and with a
properly defined implementation, will print simple performance
information about these operations.
This change merely adds the includes, and the empty implementations that
are used if the bencharking feature is not enabled.
Signed-off-by:
David Brown <david.brown@linaro.org>
CRA Git | Maintained and supported by SUSTech CRA and CCSE