diff options
author | Dean Michael Berris <dberris@google.com> | 2017-12-13 06:37:13 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-12-13 06:37:13 +0000 |
commit | 69956ecc2190003316f5384cef8508665cbd4b9f (patch) | |
tree | 6e4100ed60b6d8b002088c22acca27efd529ffb9 /docs | |
parent | 88e328af9dc04f4fcf25b3a0b60d076be3a705d7 (diff) |
[XRay][compiler-rt] Reduce XRay log spam
This change makes XRay print the log file output only when the verbosity
level is higher than 0. It reduces the log spam in the default case when
we want XRay running silently, except when there are actual
fatal/serious errors.
We also update the documentation to show how to get the information
after the change to the default behaviour.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/XRay.rst | 3 | ||||
-rw-r--r-- | docs/XRayExample.rst | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/XRay.rst b/docs/XRay.rst index 942b479af74..ebf02567830 100644 --- a/docs/XRay.rst +++ b/docs/XRay.rst @@ -164,6 +164,9 @@ variable, where we list down the options and their defaults below. | | | | Data Recorder | | | | | (FDR) mode. | +-------------------+-----------------+---------------+------------------------+ +| verbosity | ``int`` | ``0`` | Runtime verbosity | +| | | | level. | ++-------------------+-----------------+---------------+------------------------+ If you choose to not use the default logging implementation that comes with the diff --git a/docs/XRayExample.rst b/docs/XRayExample.rst index 9f74442bceb..f8e7d943fed 100644 --- a/docs/XRayExample.rst +++ b/docs/XRayExample.rst @@ -60,7 +60,7 @@ to enable XRay at application start. To do this, XRay checks the $ ./bin/llc input.ll # We need to set the XRAY_OPTIONS to enable some features. - $ XRAY_OPTIONS="patch_premain=true xray_mode=xray-basic" ./bin/llc input.ll + $ XRAY_OPTIONS="patch_premain=true xray_mode=xray-basic verbosity=1" ./bin/llc input.ll ==69819==XRay: Log file in 'xray-log.llc.m35qPB' At this point we now have an XRay trace we can start analysing. |