Skip to content

Commit

Permalink
document tprof
Browse files Browse the repository at this point in the history
  • Loading branch information
PragTob committed Jan 5, 2025
1 parent eb5e2fe commit 5565f25
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,11 @@ The available options are the following (also documented in [hexdocs](https://he
* `profile_after` - accepts any of the following options:
* a boolean - `true` will enable profiling with the default profiler (`:eprof`) and `false` will disable profiling. Defaults to `false`.
* a profiler - either as a tuple of `{profiler, opts}` (e.g., `{:fprof, [sort: :own]}`) or just the profiler (e.g., `:fprof`),
which is equivalent to `{profiler, []}`. The accepted built-in profilers are
which is equivalent to `{profiler, []}`. The accepted built-in profilers are:
[`:cprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Cprof.html),
[`:eprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Eprof.html) and
[`:fprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Fprof.html).
[`:eprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Eprof.html)
[`:fprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Fprof.html) and
[`:tprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Tprof.html) (requires elixir >= 1.17 and erlang >= 27).

### Metrics to measure

Expand Down
7 changes: 4 additions & 3 deletions lib/benchee/configuration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,11 @@ defmodule Benchee.Configuration do
* a boolean - `true` will enable profiling with the default profiler
(`:eprof`) and `false` will disable profiling. Defaults to `false`.
* a profiler - either as a tuple of `{profiler, opts}` (e.g., `{:fprof, [sort: :own]}`)
or just the profiler (e.g., `:fprof`), which is equivalent to `{profiler, []}`. The accepted built-in profilers are
or just the profiler (e.g., `:fprof`), which is equivalent to `{profiler, []}`. The accepted built-in profilers are:
[`:cprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Cprof.html),
[`:eprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Eprof.html) and
[`:fprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Fprof.html).
[`:eprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Eprof.html)
[`:fprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Fprof.html) and
[`:tprof`](https://hexdocs.pm/mix/Mix.Tasks.Profile.Tprof.html) (requires elixir >= 1.17 and erlang >= 27).
"""
@type user_configuration :: map | keyword

Expand Down

0 comments on commit 5565f25

Please sign in to comment.