diff --git a/CPU-profiling-using-perf.md b/CPU-profiling-using-perf.md index 6c73a08..42b0d7e 100644 --- a/CPU-profiling-using-perf.md +++ b/CPU-profiling-using-perf.md @@ -13,7 +13,14 @@ If your distribution does not package `inferno`, you can install the original `f sudo dnf install perf flamegraph ``` -Replace calls to `inferno` with `flamegraph.pl` if necessary. +Replace calls to `inferno` with `flamegraph.pl` if necessary. + + 1. *Optional* Enable profiling without `root` access: + +```sh +echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid +echo 0 | sudo tee /proc/sys/kernel/nmi_watchdog +``` 1. Ensure you have compiled `named` with debug symbols. Optionally, set up a prefix