Skip to content

Commit 70d7cf5

Browse files
profiling test
1 parent 0e35b07 commit 70d7cf5

14 files changed

+1083
-80
lines changed

Cargo.lock

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,25 @@ serde_repr = "0.1.17"
6666
async-trait = "0.1"
6767
futures = "0.3"
6868
futures-util = "0.3"
69-
tokio = { version = "^1.43", default-features = false, features = [
70-
"sync",
69+
# Tokio and async runtime
70+
tokio = { version = "1.42.0", features = [
7171
"macros",
72-
"fs",
7372
"rt-multi-thread",
73+
"time",
74+
"fs",
75+
"net",
76+
"sync",
77+
"process",
78+
"signal",
79+
"io-util",
7480
] }
81+
console-subscriber = { version = "0.4.0", optional = true }
7582
tokio-stream = { version = "0.1", features = ["fs"] }
7683
tokio-util = { version = "0.7" }
7784

85+
# Memory allocation
86+
tikv-jemallocator = { version = "0.6.0", optional = true }
87+
7888
# Logging and Metrics
7989
opentelemetry-proto = { version = "0.30.0", features = [
8090
"gen-tonic",
@@ -163,6 +173,9 @@ assets-sha1 = "19eec4d38b978270eca1026325350e38c235ac31"
163173

164174
[features]
165175
debug = []
176+
tokio-console = ["console-subscriber", "tokio/tracing"]
177+
jemalloc = ["tikv-jemallocator"]
178+
jemalloc-prof = ["jemalloc", "tikv-jemallocator/profiling"]
166179
kafka = [
167180
"rdkafka",
168181
"rdkafka/ssl-vendored",

0 commit comments

Comments
 (0)