feat: add make profiling to Makefile (#13996)

This commit is contained in:
Dan Cline
2025-01-27 04:31:17 -05:00
committed by GitHub
parent 07e9c1b22e
commit bdb3969287

View File

@ -354,6 +354,10 @@ update-book-cli: build-debug ## Update book cli documentation.
@echo "Updating book cli doc..." @echo "Updating book cli doc..."
@./book/cli/update.sh $(CARGO_TARGET_DIR)/debug/reth @./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 .PHONY: maxperf
maxperf: ## Builds `reth` with the most aggressive optimisations. maxperf: ## Builds `reth` with the most aggressive optimisations.
RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc,asm-keccak RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc,asm-keccak