From 02bdb6f300fa1093c027efc02bc1917ffc856388 Mon Sep 17 00:00:00 2001 From: Patrick Lodder Date: Wed, 28 Feb 2024 16:01:49 -0500 Subject: [PATCH] bench: iwyu cleanup on non-test sources --- src/bench/bench.cpp | 11 +++++++---- src/bench/bench.h | 13 ++++++++----- src/bench/bench_bitcoin.cpp | 8 +++----- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/bench/bench.cpp b/src/bench/bench.cpp index 3c9df4f71..98d3f3a7c 100644 --- a/src/bench/bench.cpp +++ b/src/bench/bench.cpp @@ -3,11 +3,14 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "bench.h" -#include "perf.h" -#include -#include -#include +#include // for NULL +#include // for gettimeofday, timeval +#include // for operator<<, setprecision +#include // for operator<<, basic_ostream +#include // for pair, make_pair + +#include "perf.h" // for perf_cpucycles, perf_fini, perf_init benchmark::BenchRunner::BenchmarkMap &benchmark::BenchRunner::benchmarks() { static std::map benchmarks_map; diff --git a/src/bench/bench.h b/src/bench/bench.h index 0e7605c72..445be56d9 100644 --- a/src/bench/bench.h +++ b/src/bench/bench.h @@ -5,12 +5,15 @@ #ifndef BITCOIN_BENCH_BENCH_H #define BITCOIN_BENCH_BENCH_H -#include -#include +#include // for uint64_t -#include -#include -#include +#include // for function +#include // for BOOST_PP_CAT +#include // for BOOST_PP_STRINGIZE + +#include // for numeric_limits +#include // for map +#include // for string // Simple micro-benchmarking framework; API mostly matches a subset of the Google Benchmark // framework (see https://github.com/google/benchmark) diff --git a/src/bench/bench_bitcoin.cpp b/src/bench/bench_bitcoin.cpp index 61a0b31ae..c4e3fd5d0 100644 --- a/src/bench/bench_bitcoin.cpp +++ b/src/bench/bench_bitcoin.cpp @@ -2,11 +2,9 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include "bench.h" - -#include "key.h" -#include "validation.h" -#include "util.h" +#include "bench.h" // for BenchRunner +#include "key.h" // for ECC_Start, ECC_Stop +#include "util.h" // for SetupEnvironment, fPrintToDebugLog int main(int argc, char** argv)