CLI Reference¶
Complete command reference for OracleTrace.
Command syntax¶
Required argument¶
target¶
Path to the Python script you want to trace.
Example:
Optional arguments¶
--json¶
Exports trace results to a JSON file.
Use this when you want to keep historical traces or compare later.
--compare¶
Compares the current run against a previous JSON trace.
Comparison output includes:
- Functions with performance increase or decrease
- Newly added functions
- Removed functions
Exit behavior¶
OracleTrace returns a non-zero exit code when:
- The target script does not exist
- The compare JSON file does not exist
Non-zero exit codes can also happen when the target script fails at runtime or when the compare JSON file cannot be parsed.
Typical workflows¶
Local development workflow¶
oracletrace app.py --json baseline.json
# change code
oracletrace app.py --json current.json --compare baseline.json
CI regression workflow¶
Store baseline.json as a known-good artifact.
Tips¶
- Run from your project root so filtering focuses on your app code
- Keep baseline and current runs as similar as possible
- Use deterministic input data for reliable comparisons