From fb3f73e5b9dda96ed7f213956ff6bd2dc51a30ad Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Thu, 12 Mar 2020 18:24:39 +0100 Subject: [PATCH] Add estimate-heapsize feature --- Cargo.lock | 1 + bin/node/cli/Cargo.toml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index dffb02b0356eb..78c938b62ea6d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3370,6 +3370,7 @@ dependencies = [ "pallet-timestamp", "pallet-transaction-payment", "parity-scale-codec", + "parity-util-mem", "rand 0.7.3", "sc-authority-discovery", "sc-basic-authorship", diff --git a/bin/node/cli/Cargo.toml b/bin/node/cli/Cargo.toml index e18b6b228e655..18e33e496b846 100644 --- a/bin/node/cli/Cargo.toml +++ b/bin/node/cli/Cargo.toml @@ -100,6 +100,9 @@ wasm-bindgen = { version = "0.2.57", optional = true } wasm-bindgen-futures = { version = "0.4.7", optional = true } browser-utils = { package = "substrate-browser-utils", path = "../../../utils/browser", optional = true, version = "0.8.0-alpha.2" } +# We need to use this `estimate-heapsize` feature on android. +parity-util-mem = { version = "0.5.1", default-features = false, features = ["estimate-heapsize"], optional = true } + [dev-dependencies] sc-keystore = { version = "2.0.0-alpha.2", path = "../../../client/keystore" } sc-consensus-babe = { version = "0.8.0-alpha.2", features = ["test-helpers"], path = "../../../client/consensus/babe" } @@ -152,3 +155,4 @@ wasmtime = [ "sc-service/wasmtime", ] runtime-benchmarks = [ "node-runtime/runtime-benchmarks" ] +estimate-heapsize = [ "parity-util-mem" ]