# `mix juggernaut.profile`
[🔗](https://github.com/holsee/juggernaut/blob/v0.4.0/lib/mix/tasks/juggernaut.profile.ex#L1)

Where a run's time went: phase clocks; per-mutant duration percentiles (p50, p90, p99,
max) by test selection; fallbacks to a whole file, the whole suite or the boot lane and
the functions that caused them; the tests that cost the most across mutant jobs; worker
utilisation and recycles; results reused and their recorded time; selection misses found
by cold reconfirmation. Durations are measured by the run; reused results are counted
apart, with the time recorded by the run they came from.

    mix juggernaut.profile [RUN] [--format human|json]

`RUN` is a run id, `latest` (the default) or `latest~N`.

## Options

  * `--format human|json` - Output format. Default: `human`. Or set `JUGGERNAUT_FORMAT`.

## Exit codes

  * 0 - shown
  * 2 - unknown run, or another usage error

# `run_ref`

```elixir
@spec run_ref([String.t()]) ::
  {:ok, Juggernaut.Store.Runs.ref()} | {:error, Juggernaut.Error.t()}
```

The run named by the positional argument, `latest` when there is none.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
