Skip to content

Commit

Permalink
Merge pull request ceph#17358 from tchaikov/wip-doc-disable-ofp
Browse files Browse the repository at this point in the history
doc/dev/perf: add doc on disabling -fomit-frame-pointer

Reviewed-by: Haomai Wang <[email protected]>
  • Loading branch information
yuyuyu101 authored Aug 30, 2017
2 parents a519867 + 4f4af62 commit 4a3a25d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/dev/perf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ To view by callee (where you can see who calls each top function)::
:note: If the caller/callee views look the same you may be
suffering from a kernel bug; upgrade to 4.8 or later.

Common Issues
-------------

Ceph use `RelWithDebInfo` as its default `CMAKE_BUILD_TYPE`. Hence `-O2 -g` is
used to compile the tree in this case. And the `-O2` optimization level
enables `-fomit-frame-pointer` by default. But this prevents stack profilers
from accessing the complete stack information. So one can disable this option
when launching `cmake` ::

cmake -DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer"

or when building the tree::

make CMAKE_CXX_FLAGS="-fno-omit-frame-pointer"


Flamegraphs
-----------

Expand Down

0 comments on commit 4a3a25d

Please sign in to comment.