Move the async-using parts of benchmarking into a .cpp file

This keeps it out of the main include path when benchmarking is
enabled, somewhat reducing the compilation-time penalty.

Also moved some other functions into the .cpp file, especially
helpers that could be given internal linkage, and concretized some
iterator-templated code that only ever used
`std::vector<double>::iterator`.
This commit is contained in:
Martin Hořeňovský 2019-06-15 11:14:24 +02:00
parent b468d7cbff
commit e640c3837a
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
4 changed files with 238 additions and 193 deletions

View file

@ -53,7 +53,7 @@ def generate(v):
out.write( line )
def insertCpps():
dirs = [os.path.join( rootPath, s) for s in ['', 'internal', 'reporters']]
dirs = [os.path.join( rootPath, s) for s in ['', 'internal', 'reporters', 'internal/benchmark', 'internal/benchmark/detail']]
cppFiles = []
for dir in dirs:
cppFiles += glob(os.path.join(dir, '*.cpp'))