Skip to content

Commit

Permalink
test: add cpuprofile arg support to benchmark make task (#12073)
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall authored Mar 28, 2024
1 parent 3bcd26a commit 4c59f13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testing/benchmark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ apply:
destroy:
@terraform destroy -auto-approve

cp-cpuprof:
@[ "${BENCHMARK_CPU_OUT}" ] && scp $(SSH_OPTS) -i $(SSH_KEY) "$(SSH_USER)@$(WORKER_IP):./$(BENCHMARK_CPU_OUT)" $(BENCHMARK_CPU_OUT) || echo "skipping cpu out copy"

.PHONY: log-benckmark-profile
log-benckmark-profile:
@echo "Running benchmarks..."
Expand All @@ -93,7 +96,7 @@ log-benckmark-profile:
run-benchmark: log-benckmark-profile
@ssh $(SSH_OPTS) -i $(SSH_KEY) $(SSH_USER)@$(WORKER_IP) ". .envrc && bin/apmbench -run='$(BENCHMARK_RUN)' \
-benchtime=$(BENCHMARK_TIME) -count=$(BENCHMARK_COUNT) -warmup-time=$(BENCHMARK_WARMUP_TIME) \
-agents=$(BENCHMARK_AGENTS) -detailed=$(BENCHMARK_DETAILED) -event-rate=$(BENCHMARK_EVENT_RATE)" 2>&1 | tee $(BENCHMARK_RESULT)
-agents=$(BENCHMARK_AGENTS) -detailed=$(BENCHMARK_DETAILED) -event-rate=$(BENCHMARK_EVENT_RATE) -cpuprofile=$(BENCHMARK_CPU_OUT)" 2>&1 | tee $(BENCHMARK_RESULT)

.PHONY: run-benchmark-autotuned
run-benchmark-autotuned:
Expand Down

0 comments on commit 4c59f13

Please sign in to comment.