Skip to content

Commit

Permalink
[Tool] Support ddprofile integration
Browse files Browse the repository at this point in the history
Signed-off-by: Deng Liu <[email protected]>
  • Loading branch information
Ubuntu authored and dengliu committed Oct 13, 2023
1 parent 57aa782 commit c744622
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/start_backend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ if [ ${RUN_CN} -eq 1 ]; then
LOG_FILE=${LOG_DIR}/cn.out
fi

if [ ${ENABLE_DD_PROFILE} == "true" ]; then
chmod 755 ${STARROCKS_HOME}/lib/ddprof
START_BE_CMD="${STARROCKS_HOME}/lib/ddprof ${START_BE_CMD}"
fi

if [ ${RUN_LOG_CONSOLE} -eq 1 ] ; then
# force glog output to console (stderr)
export GLOG_logtostderr=1
Expand Down
6 changes: 6 additions & 0 deletions docker/dockerfiles/artifacts/artifact.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,10 @@ COPY --from=fe-builder /build/starrocks/output /release/fe_artifacts
COPY --from=be-builder /build/starrocks/output /release/be_artifacts
COPY --from=broker-builder /build/starrocks/fs_brokers/apache_hdfs_broker/output /release/broker_artifacts


# Get ddprof
RUN wget https://github.com/DataDog/ddprof/releases/download/v0.14.1/ddprof-0.14.1-amd64-linux.tar.xz -O ddprof-amd64-linux.tar.xz && \
tar xvf ddprof-amd64-linux.tar.xz && \
mv ddprof/bin/ddprof /release/be_artifacts/be/lib/

WORKDIR /release

0 comments on commit c744622

Please sign in to comment.