Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make maxperf, enable GC profiling on MDBX debug #5459

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,7 @@ update-book-cli: ## Update book cli documentation.
cargo build --bin reth --features "$(FEATURES)" --profile "$(PROFILE)"
@echo "Updating book cli doc..."
@./book/cli/update.sh $(BUILD_PATH)

.PHONY: maxperf
maxperf:
RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc
5 changes: 4 additions & 1 deletion crates/storage/libmdbx-rs/mdbx-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ fn main() {

// Enable debugging on debug builds
#[cfg(debug_assertions)]
cc_builder.define("MDBX_DEBUG", "1");
{
cc_builder.define("MDBX_DEBUG", "1");
cc_builder.define("MDBX_ENABLE_PROFGC", "1");
}

// Disables debug logging on optimized builds
#[cfg(not(debug_assertions))]
Expand Down
Loading