mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make maxperf, enable GC profiling on MDBX debug (#5459)
This commit is contained in:
4
Makefile
4
Makefile
@ -228,3 +228,7 @@ update-book-cli: ## Update book cli documentation.
|
|||||||
cargo build --bin reth --features "$(FEATURES)" --profile "$(PROFILE)"
|
cargo build --bin reth --features "$(FEATURES)" --profile "$(PROFILE)"
|
||||||
@echo "Updating book cli doc..."
|
@echo "Updating book cli doc..."
|
||||||
@./book/cli/update.sh $(BUILD_PATH)
|
@./book/cli/update.sh $(BUILD_PATH)
|
||||||
|
|
||||||
|
.PHONY: maxperf
|
||||||
|
maxperf:
|
||||||
|
RUSTFLAGS="-C target-cpu=native" cargo build --profile maxperf --features jemalloc
|
||||||
|
|||||||
3
crates/storage/libmdbx-rs/mdbx-sys/build.rs
vendored
3
crates/storage/libmdbx-rs/mdbx-sys/build.rs
vendored
@ -91,7 +91,10 @@ fn main() {
|
|||||||
|
|
||||||
// Enable debugging on debug builds
|
// Enable debugging on debug builds
|
||||||
#[cfg(debug_assertions)]
|
#[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
|
// Disables debug logging on optimized builds
|
||||||
#[cfg(not(debug_assertions))]
|
#[cfg(not(debug_assertions))]
|
||||||
|
|||||||
Reference in New Issue
Block a user