[chore] Rename Doris binary output format

This commit is contained in:
Mingyu Chen
2022-06-24 15:30:05 +08:00
committed by GitHub
parent 9036f93df4
commit 8a49c7ef04
20 changed files with 96 additions and 85 deletions

View File

@ -30,7 +30,7 @@ namespace doris {
* 2. Add a UT in BitmapFunctionsTest
* 3. Add the function signature in gensrc/script/doris_builtins_functions.py
* Note: if the result is bitmap serialize data, the function return type should be BITMAP
* you could use `nm $DORIS_HOME/output/be/lib/palo_be | grep bitmap` to get the function signature
* you could use `nm $DORIS_HOME/output/be/lib/doris_be | grep bitmap` to get the function signature
* 4. Update the doc docs/documentation/cn/sql-reference/sql-functions/aggregate-functions/bitmap.md
* and docs/documentation/en/sql-reference/sql-functions/aggregate-functions/bitmap_EN.md
*/

View File

@ -190,7 +190,7 @@ void heap_handler(const WebPageHandler::ArgumentMap& args, std::stringstream* ou
(*output) << std::endl;
(*output) << " curl http://localhost:" << config::webserver_port
<< "/pprof/heap?seconds=30 > perf.data" << std::endl;
(*output) << " pprof --text be/lib/palo_be perf.data" << std::endl;
(*output) << " pprof --text be/lib/doris_be perf.data" << std::endl;
(*output) << std::endl;
(*output) << "</pre>" << std::endl;
(*output) << "<div id=\"heap\">" << std::endl;
@ -256,7 +256,7 @@ void cpu_handler(const WebPageHandler::ArgumentMap& args, std::stringstream* out
(*output) << std::endl;
(*output) << " curl http://localhost:" << config::webserver_port
<< "/pprof/profile?seconds=30 > perf.data" << std::endl;
(*output) << " pprof --text be/lib/palo_be perf.data" << std::endl;
(*output) << " pprof --text be/lib/doris_be perf.data" << std::endl;
(*output) << std::endl;
(*output) << "If you want to get the flame graph, you must first make sure that there is a "
"'perf' command on the host machine."

View File

@ -30,28 +30,28 @@ add_library(Service
)
if (${MAKE_TEST} STREQUAL "OFF")
add_executable(palo_be
add_executable(doris_be
doris_main.cpp
)
# This permits libraries loaded by dlopen to link to the symbols in the program.
set_target_properties(palo_be PROPERTIES ENABLE_EXPORTS 1)
set_target_properties(doris_be PROPERTIES ENABLE_EXPORTS 1)
target_link_libraries(palo_be
target_link_libraries(doris_be
${DORIS_LINK_LIBS}
)
install(DIRECTORY DESTINATION ${OUTPUT_DIR}/lib/)
install(TARGETS palo_be DESTINATION ${OUTPUT_DIR}/lib/)
install(TARGETS doris_be DESTINATION ${OUTPUT_DIR}/lib/)
if ("${STRIP_DEBUG_INFO}" STREQUAL "ON")
add_custom_command(TARGET palo_be POST_BUILD
COMMAND ${CMAKE_OBJCOPY} --only-keep-debug $<TARGET_FILE:palo_be> $<TARGET_FILE:palo_be>.dbg
COMMAND ${CMAKE_STRIP} --strip-debug --strip-unneeded $<TARGET_FILE:palo_be>
COMMAND ${CMAKE_OBJCOPY} --add-gnu-debuglink=$<TARGET_FILE:palo_be>.dbg $<TARGET_FILE:palo_be>
add_custom_command(TARGET doris_be POST_BUILD
COMMAND ${CMAKE_OBJCOPY} --only-keep-debug $<TARGET_FILE:doris_be> $<TARGET_FILE:doris_be>.dbg
COMMAND ${CMAKE_STRIP} --strip-debug --strip-unneeded $<TARGET_FILE:doris_be>
COMMAND ${CMAKE_OBJCOPY} --add-gnu-debuglink=$<TARGET_FILE:doris_be>.dbg $<TARGET_FILE:doris_be>
)
install(DIRECTORY DESTINATION ${OUTPUT_DIR}/lib/debug_info/)
install(FILES $<TARGET_FILE:palo_be>.dbg DESTINATION ${OUTPUT_DIR}/lib/debug_info/)
install(FILES $<TARGET_FILE:doris_be>.dbg DESTINATION ${OUTPUT_DIR}/lib/debug_info/)
endif()
endif()

View File

@ -35,7 +35,7 @@ public:
/// check and get "pprof" command, return the cmd abs path via "cmd".
static Status get_pprof_cmd(std::string* cmd);
/// get readable profile by `pprof --text palo_be perf.data`
/// get readable profile by `pprof --text doris_be perf.data`
/// if is_file is true, the file_or_content is an abs path of perf file.
/// if is_file is false, the file_or_content is the perf file content.
/// the readable content is returned via "output"