OSDN Git Service

[XRay][docs] Update instructions
authorDean Michael Berris <dberris@google.com>
Tue, 28 Aug 2018 16:46:27 +0000 (16:46 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 28 Aug 2018 16:46:27 +0000 (16:46 +0000)
Add `xray_mode=xray-basic` to the list of options in the "further
exploration" section of the doc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340843 91177308-0d34-0410-b5e6-96231b3b80d8

docs/XRayExample.rst

index e1b8c9b..e5d934c 100644 (file)
@@ -301,7 +301,7 @@ We then build the above with XRay instrumentation:
 ::
 
   $ clang++ -o sample -O3 sample.cc -std=c++11 -fxray-instrument -fxray-instruction-threshold=1
-  $ XRAY_OPTIONS="patch_premain=true" ./sample
+  $ XRAY_OPTIONS="patch_premain=true xray_mode=xray-basic" ./sample
 
 We can then explore the graph rendering of the trace generated by this sample
 application. We assume you have the graphviz toosl available in your system,