Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCD

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.

screenshot

Installation

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/ocd

Using Cargo:

cargo install --path .

Requirements

  • A Dune trace generated with --trace-file

Quick start

dune build --trace-file trace.json
ocd analyze trace.json

Compare one or more builds against the first trace:

ocd diff baseline.json candidate.json
ocd diff baseline.json candidate-a.json candidate-b.json

Commands

Command Purpose
analyze [trace.json] Summarize one trace
diff <baseline> <candidates...> Compare traces against a baseline

About

Analyze and compare Dune traces to find performance regressions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages