Skip to content

Commit 672e4db

Browse files
committed
Fix wording in docu
1 parent 3ca631d commit 672e4db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference-manual/native-image/DebugInfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ Normally when perf does stack frame recording (i.e. when `--call-graph` is used)
997997
This assumes that the executable that gets profiled actually preserves frame pointers whenever a function gets called.
998998
For native images, this can be achieved by using `-H:+PreserveFramePointer` as an image build argument.
999999

1000-
An alternative solution is to make perf use dwarf debug info (specifically debug_frame data) to help unwinding stack frames.
1000+
An alternative solution is to make perf use dwarf debug info (specifically debug_frame data) to help unwind stack frames.
10011001
To make this work, the image needs to be built with `-g` (to generate debuginfo), and `perf record` needs to use the argument `--call-graph dwarf` to make sure dwarf debug info (instead of frame pointers) is used for stack unwinding.
10021002

10031003
## Related Documentation

0 commit comments

Comments
 (0)