From bdb39692872cf512b5ea319e24b7b4a881d00036 Mon Sep 17 00:00:00 2001 From: Dan Cline <6798349+Rjected@users.noreply.github.com> Date: Mon, 27 Jan 2025 04:31:17 -0500 Subject: [PATCH] feat: add `make profiling` to Makefile (#13996) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index d815189d5..400784d76 100644 --- a/Makefile +++ b/Makefile @@ -354,6 +354,10 @@ update-book-cli: build-debug ## Update book cli documentation. @echo "Updating book cli doc..." @./book/cli/update.sh $(CARGO_TARGET_DIR)/debug/reth +.PHONY: profiling +profiling: ## Builds `reth` with optimisations, but also symbols. + RUSTFLAGS="-C target-cpu=native" cargo build --profile profiling --features jemalloc,asm-keccak + .PHONY: maxperf maxperf: ## Builds `reth` with the most aggressive optimisations. RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc,asm-keccak