Skip to content
Snippets Groups Projects
Commit 6b5c0cc5 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Notes on Linux tool perf

parent 534eafae
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ There are several ways of code profiling: ...@@ -11,6 +11,7 @@ There are several ways of code profiling:
---------------------------------------------------------- ----------------------------------------------------------
Profiling with valgrind Profiling with valgrind
---------------------------------------------------------- ----------------------------------------------------------
1) Compile BornAgain as usuall and simply run 1) Compile BornAgain as usuall and simply run
./run_valgrind.sh ./run_valgrind.sh
...@@ -49,3 +50,14 @@ run_gperftools.sh ...@@ -49,3 +50,14 @@ run_gperftools.sh
---------------------------------------------------------- ----------------------------------------------------------
Profiling with perf 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment