You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by to...@apache.org on 2017/11/15 20:58:16 UTC

[3/3] kudu git commit: Add the ability to enable xray instrumentation

Add the ability to enable xray instrumentation

Change-Id: I2a8d5a27912e3b8d4db97b05906cbe7e87ba2cc8
Reviewed-on: http://gerrit.cloudera.org:8080/8537
Reviewed-by: Alexey Serbin <as...@cloudera.com>
Tested-by: Kudu Jenkins
Reviewed-by: Dan Burkert <da...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/bb90de0e
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/bb90de0e
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/bb90de0e

Branch: refs/heads/master
Commit: bb90de0edb57b5be733b6bb83d6eebf2c5f0f855
Parents: 044d5fe
Author: Todd Lipcon <to...@apache.org>
Authored: Mon Nov 13 16:28:19 2017 -0800
Committer: Todd Lipcon <to...@apache.org>
Committed: Wed Nov 15 20:12:46 2017 +0000

----------------------------------------------------------------------
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/bb90de0e/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d6ee5b6..8afae55 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -334,6 +334,10 @@ if (${KUDU_USE_ASAN})
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -DADDRESS_SANITIZER")
 endif()
 
+if (${KUDU_USE_XRAY})
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fxray-instrument")
+endif()
+
 # For any C code, use the same flags.
 set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS}")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")