[LNT] r301388 - Document how to capture linux perf profiles.

Kristof Beyls via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 01:18:31 PDT 2017


Author: kbeyls
Date: Wed Apr 26 03:18:30 2017
New Revision: 301388

URL: http://llvm.org/viewvc/llvm-project?rev=301388&view=rev
Log:
Document how to capture linux perf profiles.

Differential Revision: https://reviews.llvm.org/D32438

Modified:
    lnt/trunk/docs/tests.rst

Modified: lnt/trunk/docs/tests.rst
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/docs/tests.rst?rev=301388&r1=301387&r2=301388&view=diff
==============================================================================
--- lnt/trunk/docs/tests.rst (original)
+++ lnt/trunk/docs/tests.rst Wed Apr 26 03:18:30 2017
@@ -253,6 +253,33 @@ some common common configurations in CMa
 and the ``--cmake-define`` flag allow you to change how LNT configures cmake
 for the test-suite run.
 
+
+Capturing Linux perf profile info
++++++++++++++++++++++++++++++++++
+
+When using the CMake driver in the test-suite, LNT can also capture profile
+information using linux perf. This can then be explored through the LNT webUI
+as demonstrated at
+http://blog.llvm.org/2016/06/using-lnt-to-track-performance.html .
+
+To capture these profiles, use command line option ``--use-perf=all``. A
+typical command line using this for evaluating the performance of generated
+code looks something like the following::
+
+  $ lnt runtest test-suite \
+       --sandbox SANDBOX \
+       --cc ~/bin/clang \
+       --use-cmake=/usr/local/bin/cmake \
+       --use-lit=~/llvm/utils/lit/lit.py \
+       --test-suite ~/llvm-test-suite \
+       --benchmarking-only \
+       --build-threads 8 \
+       --threads 1 \
+       --use-perf=all \
+       --exec-multisample=5 \
+       --run-under 'taskset -c 1'
+
+
 Bisecting: ``--single-result`` and ``--single-result-predicate``
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 




More information about the llvm-commits mailing list