提交 b41e26a3 编写于 作者: D Dong Li 提交者: Jiangtao Hu

tool: added cpu profiling support

上级 331d20a0
......@@ -612,7 +612,7 @@ function main() {
apollo_build_dbg $@
;;
build_prof)
DEFINES="${DEFINES} --cxxopt=-DCPU_ONLY  --copt='-pg' --cxxopt='-pg' --linkopt='-pg'"
DEFINES="${DEFINES} --config=cpu_prof --cxxopt=-DCPU_ONLY"
apollo_build_dbg $@
;;
build_no_perception)
......
......@@ -55,6 +55,9 @@ build --spawn_strategy=standalone
# Specify protobuf cc toolchain
build --proto_toolchain_for_cc="@com_google_protobuf//:cc_toolchain"
# build with profiling
build:cpu_prof --linkopt=-lprofiler
# Enable C++14
# build --cxxopt="-std=c++14"
# Enable colorful output of GCC
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册