@@ -115,6 +115,10 @@ The following options alter the behaviour of the `bench_local` subcommand.
115
115
by ` rustup ` will be used. This is usually fine, though in rare cases it may
116
116
cause local results to not exactly match production results, because Cargo
117
117
sometimes begins passing (or stops passing) various flags to rustc.
118
+ - ` --cargo-config <CONFIG> ` : a Cargo configuration value or a path to a Cargo
119
+ configuration file. This flag can be specified multiple times, and will be
120
+ passed to the Cargo executable as the value of the flag
121
+ [ ` --config ` ] ( https://doc.rust-lang.org/nightly/cargo/commands/cargo.html#option-cargo---config ) .
118
122
- ` --db <DATABASE> ` : a path (relative or absolute) to a sqlite database file in
119
123
which the timing data will be placed. It will be created if it does not
120
124
already exist. The default is ` results.db ` . Alternatively, the collector
@@ -195,7 +199,7 @@ and discover all benchmarks within them. If you only want to run benchmark(s) fr
195
199
you can use this to speed up the runtime benchmarking or profiling commands.
196
200
197
201
The ` bench_runtime_local ` command also shares some options with the ` bench_local ` command, notably
198
- ` --id ` , ` --db ` , ` --cargo ` , ` --include ` , ` --exclude ` and ` --iterations ` .
202
+ ` --id ` , ` --db ` , ` --cargo ` , ` --cargo-config ` , ` -- include` , ` --exclude ` and ` --iterations ` .
199
203
200
204
### How to view the measurements on your own machine
201
205
@@ -465,6 +469,7 @@ fashion to the one chosen for `bench_local`.
465
469
466
470
The following options alter the behaviour of the ` profile_local ` subcommand.
467
471
- ` --cargo <CARGO> ` : as for ` bench_local ` .
472
+ - ` --cargo-config <CONFIG> ` : as for ` bench_local ` .
468
473
- ` --exclude <EXCLUDE> ` : as for ` bench_local ` .
469
474
- ` --id <ID> ` : an identifer that will form part of the output filenames.
470
475
- ` --include <INCLUDE> ` : as for ` bench_local ` .
0 commit comments