aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatish Patel <satish.patel@linaro.org>2016-04-12 17:12:48 +0530
committerSatish Patel <satish.patel@linaro.org>2016-04-12 17:12:48 +0530
commit197b6cafbcd3f848455d75c046bd8210b0e24c02 (patch)
tree385ffe31fbc78320908df68bcc1876730907d2d5
parent16808397f70b6123358a3040562d829140ca31d8 (diff)
downloadgperftools-197b6cafbcd3f848455d75c046bd8210b0e24c02.tar.gz
benchmark: add support for binary trees benchmark
Adds support to generate "gperftools_benchmark_binarytrees" for binary trees benchmark Signed-off-by: Satish Patel <satish.patel@linaro.org>
-rw-r--r--benchmark/Android.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/benchmark/Android.mk b/benchmark/Android.mk
index 3f1d491..61f5282 100644
--- a/benchmark/Android.mk
+++ b/benchmark/Android.mk
@@ -52,3 +52,21 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := debug
LOCAL_SHARED_LIBRARIES += libcutils
include $(BUILD_EXECUTABLE)
+
+#
+# binary tree benchmark
+#
+include $(CLEAR_VARS)
+LOCAL_CLANG := true
+LOCAL_CPP_EXTENSION := cc
+LOCAL_CXX_STL := libc++
+LOCAL_SRC_FILES := binary_trees.cc
+LOCAL_SYSTEM_SHARED_LIBRARIES := libc libstdc++
+LOCAL_STATIC_LIBRARIES :=
+LOCAL_CPPFLAGS += $(gperftools_cppflags)
+LOCAL_CFLAGS := -Wall -Werror -std=gnu++11
+LOCAL_MODULE := gperftools_benchmark_binarytrees
+LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
+LOCAL_MODULE_TAGS := debug
+LOCAL_SHARED_LIBRARIES += libcutils
+include $(BUILD_EXECUTABLE)