Skip to content

Commit 685f9ed

Browse files
authored
Rename README.md to rootbench-scripts/README.md
1 parent b2c6bb7 commit 685f9ed

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

rootbench-scripts/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## About
2+
3+
flamegraph.sh is a script that generates Flame Graphs for each benchmark in `rootbench.git`. More information on Flame Graphs can be found [here](http://www.brendangregg.com/flamegraphs.html).
4+
5+
## Options
6+
7+
See the USAGE message (--help) for options.
8+
9+
In order to generate flamegraphs for all the benchmarks at once you need to run the following command
10+
```bash
11+
flamegraph.sh -d path/to/rootbench/build/dir -a
12+
```
13+
To generate FlameGraphs for specific bechmark just run
14+
```bash
15+
flamegraph.sh -d path/to/rootbench/build/dir -b path/to/benchmark
16+
```
17+
## Configuration
18+
19+
If `perf` cannot find symbols in the program try to execute the following commands
20+
```bash
21+
echo 0 > /proc/sys/kernel/kptr_restrict
22+
echo 1 > /proc/sys/kernel/sched_schedstats
23+
```
24+
25+
To generate flamegraphs for each benchmark add `-Dflamegraph=ON` option to your cmake configuration when building rootbench.
26+
27+
```bash
28+
cmake ../rootbench -Dflamegraph=ON
29+
make -j4
30+
ctest -V -R rootbench-CLASSNAMEBenchmarks
31+
```
32+
You can also run the script for Flame Graph generation from your rootbench directory.

0 commit comments

Comments
 (0)