Martin Ankerl
|
f530202353
|
Make unexpected time type in BCLog::LogMsg() a compile-time error
|
2021-09-07 19:19:31 +02:00 |
|
Jon Atack
|
498b323425
|
log, timer: improve BCLog::LogMsg()
- make timer code more homogeneous
- replace division with multiplication
- log if the time type is unexpected
|
2021-09-07 00:37:39 +02:00 |
|
Jon Atack
|
3f4c6b87f1
|
log, timer: add timing macro in usec LOG_TIME_MICROS_WITH_CATEGORY
and update BCLog::LogMsg() to omit irrelevant decimals for microseconds
and skip unneeded code and math.
|
2021-09-01 15:12:52 +02:00 |
|
MarcoFalke
|
fa40d6a1c4
|
test: Reset mocktime in the common setup
Doing it there will reduce code bloat and also ensure no test can "forget" to reset it
|
2021-04-14 17:38:07 +02:00 |
|
MarcoFalke
|
faec28252c
|
scripted-diff: test: Move setup_common to test library
-BEGIN VERIFY SCRIPT-
# Move files
for f in $(git ls-files src/test/lib/); do git mv $f src/test/util/; done
git mv src/test/setup_common.cpp src/test/util/
git mv src/test/setup_common.h src/test/util/
# Replace Windows paths
sed -i -e 's|\\setup_common|\\util\\setup_common|g' $(git grep -l '\\setup_common')
sed -i -e 's|src\\test\\lib\\|src\\test\\util\\|g' build_msvc/test_bitcoin/test_bitcoin.vcxproj
# Everything else
sed -i -e 's|/setup_common|/util/setup_common|g' $(git grep -l 'setup_common')
sed -i -e 's|test/lib/|test/util/|g' $(git grep -l 'test/lib/')
# Fix include guard
sed -i -e 's|BITCOIN_TEST_SETUP_COMMON_H|BITCOIN_TEST_UTIL_SETUP_COMMON_H|g' ./src/test/util/setup_common.h
sed -i -e 's|BITCOIN_TEST_LIB_|BITCOIN_TEST_UTIL_|g' $(git grep -l 'BITCOIN_TEST_LIB_')
-END VERIFY SCRIPT-
|
2019-11-06 11:56:41 -05:00 |
|
James O'Beirne
|
41edaf227a
|
logs: add BCLog::Timer and related macros
Makes logging timing information about a block of code easier.
|
2019-11-04 14:13:52 -05:00 |
|