Skip to content

Commit

Permalink
Companion for paritytech/substrate#12795 (#6374)
Browse files Browse the repository at this point in the history
* 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 <write@reusable.software>
  • Loading branch information
mrcnski and ordian committed Dec 6, 2022
1 parent e23eb23 commit 39b42bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions polkadot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()?;
Expand Down

0 comments on commit 39b42bf

Please sign in to comment.