xpd optimize start
Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project
Start a refactor run. xpd records the commit that is checked out, the paths, the code line count, each --check command, and an optional --bench workload command (timed with 1 warmup and --bench-runs measured runs). Give a check for each command the project checks itself with. A check that fails at the start gates nothing. The tracked files must match the commit, and a run that is not finished is kept unless you pass --restart.
The xpd optimize page shows a whole run.
xpd optimize start [OPTIONS] [PATHS]...Arguments
Section titled “Arguments”<PATHS>
Section titled “<PATHS>”<PATHS>...
Files or directories to measure, inside one git repository.
Default: ..
Options
Section titled “Options”--check
Section titled “--check”--check <COMMAND>
A command that exits 0 when the project is sound, such as its tests. Repeat the flag for more than one. Each runs now, and again at every gate.
Give it more than once to pass several values.
--bench
Section titled “--bench”--bench <COMMAND>
A command that runs a representative workload to time before and after each fix. Measured with one warmup run and --bench-runs timed runs.
--bench-runs
Section titled “--bench-runs”--bench-runs <BENCH_RUNS>
How many timed runs each benchmark measurement takes.
Default: 5.
--restart
Section titled “--restart”--restart
Replace a run that is not finished.
--format
Section titled “--format”--format <FORMAT>
Output format. Default: text on a terminal, json otherwise.
Values: text, json.
Example
Section titled “Example”$ xpd optimize start --help...