diff --git a/dev-tools/profiling/README b/dev-tools/profiling/README index 369a841fc63ed388e10ea912772a4c53a03d8857..79558124daa256ee683051760212124e06a296e5 100644 --- a/dev-tools/profiling/README +++ b/dev-tools/profiling/README @@ -11,6 +11,7 @@ There are several ways of code profiling: ---------------------------------------------------------- Profiling with valgrind ---------------------------------------------------------- + 1) Compile BornAgain as usuall and simply run ./run_valgrind.sh @@ -49,3 +50,14 @@ run_gperftools.sh ---------------------------------------------------------- Profiling with perf ---------------------------------------------------------- + +Under Linux. + +Install Debian package linux-perf. + +echo "-1" >/proc/sys/kernel/perf_event_paranoid + +perf stat <any performance test> + +perf record -o /tmp/perf.out <any performance test> +perf report -i /tmp/perf.out