[PATCH] D32438: [LNT] Document how to capture linux perf profiles.

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 01:31:30 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL301388: Document how to capture linux perf profiles. (authored by kbeyls).

Changed prior to commit:
  https://reviews.llvm.org/D32438?vs=96407&id=96679#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D32438

Files:
  lnt/trunk/docs/tests.rst


Index: lnt/trunk/docs/tests.rst
===================================================================
--- lnt/trunk/docs/tests.rst
+++ lnt/trunk/docs/tests.rst
@@ -253,6 +253,33 @@
 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``
 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32438.96679.patch
Type: text/x-patch
Size: 1322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170426/46f4fdbe/attachment.bin>


More information about the llvm-commits mailing list