]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/dev: update to adapt the cmake+ninja transition
authorKefu Chai <kchai@redhat.com>
Sun, 14 Mar 2021 11:58:51 +0000 (19:58 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 16 Mar 2021 12:22:12 +0000 (20:22 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/dev/cpu-profiler.rst
doc/dev/documenting.rst

index 5b06a47919c1bd8b4e8126d754253f2e61283208..3885293cd28d5f19b85b70ef6280daa1a7ecb2d3 100644 (file)
@@ -19,25 +19,17 @@ executing the following::
 Compiling Ceph for Profiling
 ============================
 
-To compile Ceph for profiling, first clean everything. :: 
+To compile Ceph for profiling, first clean everything. ::
 
-       make distclean
+    git clean -dfx
        
-Then, export the following settings so that you can see callgraph output. :: 
+Finally, compile Ceph. ::
 
-       export CFLAGS="-fno-omit-frame-pointer -O2 -g"
-
-Finally, compile Ceph. :: 
-
-       ./autogen.sh
-       ./configure
-       make
-
-You can use ``make -j`` to execute multiple jobs depending upon your system. For
-example::
-
-       make -j4
+       ./do-cmake.sh -DCMAKE_CXX_FLAGS="-fno-omit-frame-pointer -O2 -g"
+    cd build
+    cmake --build .
 
+In this command, ``CMAKE_CXX_FLAGS`` is specified. This provides callgraph output.
 
 Ceph Configuration 
 ==================
@@ -51,4 +43,4 @@ for details.
 See the `CPU Profiling`_ section of the RADOS Troubleshooting documentation for details on using Oprofile.
 
 
-.. _CPU Profiling: ../../rados/troubleshooting/cpu-profiling
\ No newline at end of file
+.. _CPU Profiling: ../../rados/troubleshooting/cpu-profiling
index 42bd56d06fed5754d55090445efaf1c1d5d810d1..1e10776ce037e661187659dcd9fe164e4f791e61 100644 (file)
@@ -55,7 +55,7 @@ To generate the doxygen documentation in HTML format use:
 
 ::
 
-   # make doxygen
+   # cmake --build . --target doxygen
 
 HTML output will be under: ``build-doc/doxygen/html``