Skip to content

Commit 178d8aa

Browse files
committed
Add perf example for capturing larger call stacks
1 parent e8604a6 commit 178d8aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

profiling_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Basic recording of an ocaml program
1515
perf record --call-graph dwarf -- program-to-run program-arguments
1616
# exclude child process (-i), user cycles
1717
perf record --call-graph dwarf -i -e cycles:u -- program-to-run program-arguments
18+
# expand sampled stack (which will make the traces larger) to capture deeper call stacks
19+
perf record --call-graph dwarf,32768 -i -e cycles:u -- program-to-run program-arguments
1820
```
1921

2022
Basic viewing of a perf recording

0 commit comments

Comments
 (0)