bench: iwyu cleanup on non-test sources

Cherry-picked from: 462ef2dc
Github Pull Request: #3456
This commit is contained in:
Patrick Lodder 2024-02-28 16:01:49 -05:00
parent 3759e0f3d1
commit 9df93da169
No known key found for this signature in database
GPG Key ID: 7C523F5FBABE80E7
3 changed files with 18 additions and 14 deletions

View File

@ -3,11 +3,14 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bench.h"
#include "perf.h"
#include <iostream>
#include <iomanip>
#include <sys/time.h>
#include <cstddef> // for NULL
#include <sys/time.h> // for gettimeofday, timeval
#include <iomanip> // for operator<<, setprecision
#include <iostream> // for operator<<, basic_ostream
#include <utility> // for pair, make_pair
#include "perf.h" // for perf_cpucycles, perf_fini, perf_init
benchmark::BenchRunner::BenchmarkMap &benchmark::BenchRunner::benchmarks() {
static std::map<std::string, benchmark::BenchFunction> benchmarks_map;

View File

@ -5,12 +5,15 @@
#ifndef BITCOIN_BENCH_BENCH_H
#define BITCOIN_BENCH_BENCH_H
#include <map>
#include <string>
#include <cstdint> // for uint64_t
#include <boost/function.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <boost/function.hpp> // for function
#include <boost/preprocessor/cat.hpp> // for BOOST_PP_CAT
#include <boost/preprocessor/stringize.hpp> // for BOOST_PP_STRINGIZE
#include <limits> // for numeric_limits
#include <map> // for map
#include <string> // for string
// Simple micro-benchmarking framework; API mostly matches a subset of the Google Benchmark
// framework (see https://github.com/google/benchmark)

View File

@ -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)