xpd math-opt start
Use xpd math-opt start during a recorded optimization review.
Commit the selected paths and any Python adapter. Add project solution checks with repeated --check options. The ledger records the baseline before edits.
xpd math-opt start [OPTIONS] [PATHS]...Arguments
Section titled “Arguments”| Argument | What it does |
|---|---|
<PATHS>... |
Files or directories to measure, inside one git repository. |
Options
Section titled “Options”| Option | Default | What it does |
|---|---|---|
--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. Repeatable. | |
--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 <BENCH_RUNS> |
5 |
How many timed runs each benchmark measurement takes. |
--adapter <ADAPTER> |
A Python adapter file or shell command that emits runtime measurements. | |
--target <COLUMN> |
Target column for data-prep. | |
--all-modules |
Require checklist review across every surveyed module, not only modules with findings. | |
--restart |
Replace a run that is not finished. | |
--format <FORMAT> |
Output format. Default: text on a terminal, json otherwise. Values: text, json. |
Example
Section titled “Example”$ xpd math-opt start --help | head -n 1Start a run: record the commit it starts from, the paths, line count, checks and optional benchmark of the project