From 39b42bf99780226a9176930e9e6a2d06b1dad0f0 Mon Sep 17 00:00:00 2001 From: Marcin S Date: Tue, 6 Dec 2022 11:41:00 -0500 Subject: [PATCH] Companion for paritytech/substrate#12795 (#6374) * Begin removing `parity-util-mem`; remove `collect_memory_stats` * Update some dependencies that were using `parity-util-mem` * Remove `trie-memory-tracker` feature * Update Cargo.lock * Update `kvdb-shared-tests` * Add back jemalloc * Add missing license header * update lockfile for {"substrate"} Co-authored-by: parity-processbot <> Co-authored-by: Andronik --- polkadot/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/polkadot/src/main.rs b/polkadot/src/main.rs index 14d62fbb9a..13c17df851 100644 --- a/polkadot/src/main.rs +++ b/polkadot/src/main.rs @@ -20,6 +20,11 @@ use color_eyre::eyre; +/// Global allocator. Changing it to another allocator will require changing +/// `memory_stats::MemoryAllocationTracker`. +#[global_allocator] +pub static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; + fn main() -> eyre::Result<()> { color_eyre::install()?; polkadot_cli::run()?;