OCD analyzes Dune trace files and compares builds to
surface time, GC and resource changes.
This currently supports Dune version 3.21.1 only. Planning to support majority.
Using Nix:
# Check it out
nix run github:briheet/ocd
# Try before installing
nix run github:briheet/ocd -- analyze trace.json
# Install
nix profile install github:briheet/ocdUsing Cargo:
cargo install --path .- A Dune trace generated with
--trace-file
dune build --trace-file trace.json
ocd analyze trace.jsonCompare one or more builds against the first trace:
ocd diff baseline.json candidate.json
ocd diff baseline.json candidate-a.json candidate-b.json| Command | Purpose |
|---|---|
analyze [trace.json] |
Summarize one trace |
diff <baseline> <candidates...> |
Compare traces against a baseline |
