-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathCargo.toml
More file actions
141 lines (121 loc) · 4.64 KB
/
Cargo.toml
File metadata and controls
141 lines (121 loc) · 4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[package]
name = "dial9-tokio-telemetry"
version = "0.3.6"
edition.workspace = true
license.workspace = true
repository.workspace = true
publish = true
readme = "README.md"
description = "Low-overhead runtime telemetry for Tokio with poll timing, wake events, and CPU profiling"
keywords = ["tokio", "telemetry", "profiling", "async", "tracing"]
categories = ["asynchronous", "development-tools::profiling"]
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "tokio_unstable"]
rustc-args = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes"]
all-features = true
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(shuttle)"] }
[dependencies]
tokio = { version = "1.52.0", features = ["rt", "macros", "time", "rt-multi-thread", "sync", "net", "io-util"] }
tokio-util = "0.7"
arc-swap = "1"
crossbeam-queue = "0.3"
libc.workspace = true
futures-util = { version = "0.3", default-features = false, features = ["alloc", "std"] }
pin-project-lite = "0.2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
smallvec = "1"
backtrace = { version = "0.3", optional = true }
dial9-perf-self-profile = { workspace = true, optional = true }
dial9-trace-format = { workspace = true, features = ["serde"] }
tracing = "0.1.44"
tracing-subscriber = { version = "0.3", optional = true, default-features = false, features = ["registry"] }
hostname = "0.4"
bon = "3"
aws-sdk-s3-transfer-manager = { version = "0.1.3", optional = true, default-features = false }
aws-sdk-s3 = { version = "1", default-features = false, optional = true, features = ["behavior-version-latest", "sigv4a", "rt-tokio", "default-https-client"] }
aws-config = { version = "1", optional = true, default-features = false }
flate2 = { version = "1" }
time = { version = "0.3", features = ["formatting", "macros"], optional = true }
metrique-writer = "0.1"
metrique = { version = "0.1.23", features = ["local-format"] }
metrique-timesource = "0.1"
dial9-macro = { workspace = true }
shuttle = { version = "0.9.1", optional = true }
[features]
analysis = []
cpu-profiling = ["dep:dial9-perf-self-profile"]
_shuttle = ["dep:shuttle", "metrique-timesource/custom-timesource", "metrique-timesource/test-util"]
## Capture async backtraces at tokio yield points. Linux-only
## (aarch64/x86/x86_64): tokio's upstream `taskdump` feature refuses to
## compile on other targets. Enabling this feature on an unsupported target
## is a hard compile error from tokio.
taskdump = ["tokio/taskdump", "dep:backtrace"]
tracing-layer = ["dep:tracing-subscriber"]
worker-s3 = ["dep:aws-sdk-s3-transfer-manager", "dep:aws-sdk-s3", "dep:aws-config", "dep:time"]
[dev-dependencies]
dial9-tokio-telemetry = { path = ".", features = ["analysis", "tracing-layer", "worker-s3"] }
assert2 = { workspace = true }
criterion = "0.5"
clap = { version = "4", features = ["derive", "env"] }
hdrhistogram = "7"
metrique-timesource = { version = "0.1", features = ["custom-timesource", "tokio"] }
metrique-writer = { version = "0.1", features = ["test-util"] }
tokio = { version = "1.52.0", features = ["test-util"] }
proptest = "1"
tempfile = "3"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
s3s = "0.13.0"
s3s-fs = "0.13.0"
s3s-aws = "0.13.0"
aws-sdk-s3 = { version = "1", default-features = false, features = ["behavior-version-latest", "default-https-client", "http-1x", "rt-tokio", "sigv4a"] }
aws-config = { version = "1", features = ["behavior-version-latest"] }
async-trait = "0.1.89"
uuid = { version = "1", features = ["v4"] }
[target.'cfg(target_os = "linux")'.dev-dependencies]
dial9-tokio-telemetry = { path = ".", features = ["cpu-profiling", "worker-s3", "analysis", "taskdump", "tracing-layer"] }
nix = { version = "0.29", features = ["process"] }
[[bench]]
name = "overhead_bench"
harness = false
[[bench]]
name = "e2e_workload"
harness = false
[[example]]
name = "blocking_pool_tracking"
required-features = ["cpu-profiling"]
[[example]]
name = "blocking_sleep"
required-features = ["cpu-profiling"]
[[example]]
name = "cpu_profile_workload"
required-features = ["cpu-profiling", "analysis"]
[[example]]
name = "s3_stress_test"
required-features = ["worker-s3"]
[[example]]
name = "analyze_trace"
required-features = ["analysis"]
[[example]]
name = "trace_to_jsonl"
required-features = ["analysis"]
[[example]]
name = "trace_to_fat_jsonl"
required-features = ["analysis"]
[[example]]
name = "kernel_sched_events"
required-features = ["cpu-profiling", "analysis"]
[[example]]
name = "thread_per_core"
required-features = ["analysis"]
[[bench]]
name = "writer_encode"
harness = false
[[bench]]
name = "threadlocal_encode"
harness = false
[[bench]]
name = "tracing_layer_bench"
harness = false
required-features = ["tracing-layer"]