mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
doc: Add eval-profiler
documentation and release note
This commit is contained in:
parent
33141cd133
commit
2190bf2006
3 changed files with 47 additions and 0 deletions
13
doc/manual/rl-next/eval-profiler.md
Normal file
13
doc/manual/rl-next/eval-profiler.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
synopsis: Add stack sampling evaluation profiler
|
||||
prs: [13220]
|
||||
---
|
||||
|
||||
Nix evaluator now supports stack sampling evaluation profiling via `--eval-profiler flamegraph` setting.
|
||||
It collects collapsed call stack information to output file specified by
|
||||
`--eval-profile-file` (`nix.profile` by default) in a format directly consumable
|
||||
by `flamegraph.pl` and compatible tools like [speedscope](https://speedscope.app/).
|
||||
Sampling frequency can be configured via `--eval-profiler-frequency` (99 Hz by default).
|
||||
|
||||
Unlike existing `--trace-function-calls` this profiler includes the name of the function
|
||||
being called when it's available.
|
Loading…
Add table
Add a link
Reference in a new issue