collect better memory stats (#3612)

* add jemalloc memory statistics tracking

* chore: move Metronome in a separate file

* add meta flag spellcheck

* adjust metrics names

* account for new metrics in test
This commit is contained in:
Bernhard Schuster
2021-08-13 12:40:45 +02:00
committed by GitHub
parent dd60af513e
commit ac338b6c28
15 changed files with 278 additions and 69 deletions
+41 -10
View File
@@ -2006,7 +2006,7 @@ dependencies = [
"linregress",
"log",
"parity-scale-codec",
"paste",
"paste 1.0.5",
"sp-api",
"sp-io",
"sp-runtime",
@@ -2092,7 +2092,7 @@ dependencies = [
"log",
"once_cell",
"parity-scale-codec",
"paste",
"paste 1.0.5",
"serde",
"smallvec",
"sp-arithmetic",
@@ -3019,6 +3019,17 @@ version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6"
[[package]]
name = "jemalloc-ctl"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c502a5ff9dd2924f1ed32ba96e3b65735d837b4bfd978d3161b1702e66aca4b7"
dependencies = [
"jemalloc-sys",
"libc",
"paste 0.1.18",
]
[[package]]
name = "jemalloc-sys"
version = "0.3.2"
@@ -5215,7 +5226,7 @@ dependencies = [
"pallet-authorship",
"pallet-session",
"parity-scale-codec",
"paste",
"paste 1.0.5",
"rand_chacha 0.2.2",
"serde",
"sp-application-crypto",
@@ -5604,12 +5615,31 @@ dependencies = [
"winapi 0.3.9",
]
[[package]]
name = "paste"
version = "0.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "45ca20c77d80be666aef2b45486da86238fabe33e38306bd3118fe4af33fa880"
dependencies = [
"paste-impl",
"proc-macro-hack",
]
[[package]]
name = "paste"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58"
[[package]]
name = "paste-impl"
version = "0.1.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d95a7db200b97ef370c8e6de0088252f7e0dfff7d047a28528e47456c0fc98b6"
dependencies = [
"proc-macro-hack",
]
[[package]]
name = "pbkdf2"
version = "0.3.0"
@@ -6398,6 +6428,7 @@ dependencies = [
"async-trait",
"futures 0.3.16",
"futures-timer 3.0.2",
"jemalloc-ctl",
"metered-channel",
"sc-network",
"sp-application-crypto",
@@ -9493,7 +9524,7 @@ dependencies = [
"approx",
"num-complex",
"num-traits",
"paste",
"paste 1.0.5",
]
[[package]]
@@ -9517,7 +9548,7 @@ version = "0.9.9"
dependencies = [
"enumn",
"parity-scale-codec",
"paste",
"paste 1.0.5",
"sp-runtime",
"sp-std",
]
@@ -10017,7 +10048,7 @@ dependencies = [
"log",
"parity-scale-codec",
"parity-util-mem",
"paste",
"paste 1.0.5",
"rand 0.7.3",
"serde",
"sp-application-crypto",
@@ -10294,7 +10325,7 @@ dependencies = [
"pallet-staking",
"pallet-transaction-payment",
"parity-scale-codec",
"paste",
"paste 1.0.5",
"polkadot-core-primitives",
"polkadot-runtime",
"polkadot-runtime-common",
@@ -11580,7 +11611,7 @@ dependencies = [
"lazy_static",
"libc",
"log",
"paste",
"paste 1.0.5",
"psm",
"region",
"rustc-demangle",
@@ -12053,7 +12084,7 @@ version = "0.9.9"
dependencies = [
"frame-support",
"parity-scale-codec",
"paste",
"paste 1.0.5",
"polkadot-core-primitives",
"polkadot-parachain",
"polkadot-runtime-parachains",
@@ -12072,7 +12103,7 @@ dependencies = [
"pallet-balances",
"pallet-xcm",
"parity-scale-codec",
"paste",
"paste 1.0.5",
"polkadot-core-primitives",
"polkadot-parachain",
"polkadot-runtime-parachains",