Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add an estimate-heapsize feature to node-cli for Android #5240

Closed
wants to merge 1 commit into from
Closed
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions bin/node/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down Expand Up @@ -152,3 +155,4 @@ wasmtime = [
"sc-service/wasmtime",
]
runtime-benchmarks = [ "node-runtime/runtime-benchmarks" ]
estimate-heapsize = [ "parity-util-mem" ]