diff --git a/.gitlab/benchmark.yml b/.gitlab/benchmark.yml index 82c8f346..d65c88e8 100644 --- a/.gitlab/benchmark.yml +++ b/.gitlab/benchmark.yml @@ -44,6 +44,7 @@ build-adp-baseline-image: --tag ${BASELINE_SALUKI_IMG} --build-arg BUILD_IMAGE=${SALUKI_BUILD_CI_IMAGE} --build-arg APP_IMAGE=${GBI_BASE_IMAGE} + --build-arg BUILD_PROFILE=optimized-debug-release --label git.repository=${CI_PROJECT_NAME} --label git.branch=${CI_COMMIT_REF_NAME} --label git.commit=${CI_COMMIT_SHA} @@ -77,6 +78,7 @@ build-adp-comparison-image: --tag ${COMPARISON_SALUKI_IMG} --build-arg BUILD_IMAGE=${SALUKI_BUILD_CI_IMAGE} --build-arg APP_IMAGE=${GBI_BASE_IMAGE} + --build-arg BUILD_PROFILE=optimized-debug-release --label git.repository=${CI_PROJECT_NAME} --label git.branch=${CI_COMMIT_REF_NAME} --label git.commit=${CI_COMMIT_SHA} diff --git a/Makefile b/Makefile index 5bd2baa7..078c6dd5 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,12 @@ build-adp: ## Builds the ADP binary in release mode @echo "[*] Building ADP locally..." @cargo build --release --package agent-data-plane +.PHONY: build-adp-profiling +build-adp-profiling: check-rust-build-tools +build-adp-profiling: ## Builds the ADP binary for profiling (optimized-debug-release profile) + @echo "[*] Building ADP locally..." + @cargo build --profile optimized-debug-release --package agent-data-plane + .PHONY: build-adp-image build-adp-image: ## Builds the ADP container image ('latest' tag) @echo "[*] Building ADP image..." @@ -351,7 +357,7 @@ endif ##@ Profiling .PHONY: profile-run-adp-ddprof -profile-run-adp-ddprof: ensure-ddprof build-adp +profile-run-adp-ddprof: ensure-ddprof build-adp-profiling profile-run-adp-ddprof: ## Runs ADP under ddprof locally ifeq ($(shell test -S /var/run/datadog/apm.socket || echo not-found), not-found) $(error "APM socket at /var/run/datadog/apm.socket not found. Is the Datadog Agent running?")