forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripted-diff: Replace AddArgs / GetArgs calls with Setting Register …
…/ Get calls -BEGIN VERIFY SCRIPT- python contrib/devtools/reg-settings.py git add -N src/bench/bench_bitcoin_settings.h src/bitcoin-tx_settings.h src/bitcoin-util_settings.h src/bitcoin-wallet_settings.h src/chainparamsbase_settings.h src/common/args_settings.h src/init/common_settings.h src/init_settings.h src/qt/bitcoin_settings.h src/test/argsman_tests_settings.h src/test/logging_tests_settings.h src/wallet/init_settings.h git rm contrib/devtools/reg-settings.py -END VERIFY SCRIPT-
- Loading branch information
Showing
63 changed files
with
2,268 additions
and
1,230 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#ifndef BENCH_BENCH_BITCOIN_SETTINGS_H | ||
#define BENCH_BENCH_BITCOIN_SETTINGS_H | ||
|
||
#include <common/setting.h> | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
using AsymptoteSetting = common::Setting< | ||
"-asymptote=<n1,n2,n3,...>", std::string, {.legacy = true}, | ||
"Test asymptotic growth of the runtime of an algorithm, if supported by the benchmark">; | ||
|
||
using FilterSetting = common::Setting< | ||
"-filter=<regex>", std::string, {.legacy = true}, | ||
"Regular expression filter to select benchmark by name (default: %s)"> | ||
::Default<DEFAULT_BENCH_FILTER>; | ||
|
||
using ListSetting = common::Setting< | ||
"-list", bool, {.legacy = true}, | ||
"List benchmarks without executing them">; | ||
|
||
using MinTimeSetting = common::Setting< | ||
"-min-time=<milliseconds>", int64_t, {.legacy = true, .disallow_negation = true}, | ||
"Minimum runtime per benchmark, in milliseconds (default: %d)"> | ||
::Default<DEFAULT_MIN_TIME_MS>; | ||
|
||
using OutputCsvSetting = common::Setting< | ||
"-output-csv=<output.csv>", fs::path, {.legacy = true}, | ||
"Generate CSV file with the most important benchmark results">; | ||
|
||
using OutputJsonSetting = common::Setting< | ||
"-output-json=<output.json>", fs::path, {.legacy = true}, | ||
"Generate JSON file with all benchmark results">; | ||
|
||
using SanityCheckSetting = common::Setting< | ||
"-sanity-check", bool, {.legacy = true}, | ||
"Run benchmarks for only one iteration with no output">; | ||
|
||
using PriorityLevelSetting = common::Setting< | ||
"-priority-level=<l1,l2,l3>", std::string, {.legacy = true}, | ||
"Run benchmarks of one or multiple priority level(s) (%s), default: '%s'"> | ||
::Default<DEFAULT_PRIORITY> | ||
::HelpArgs<benchmark::ListPriorities(), DEFAULT_PRIORITY>; | ||
|
||
#endif // BENCH_BENCH_BITCOIN_SETTINGS_H |
Oops, something went wrong.