-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
65 lines (52 loc) · 1.42 KB
/
Cargo.toml
File metadata and controls
65 lines (52 loc) · 1.42 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
[workspace]
members = ["profiler_macros"]
resolver = "3"
[package]
name = "profiler"
version = "0.2.0"
edition = "2024"
license = "MIT OR Apache-2.0"
description = "Multi-span metrics based profiler and benchmarking library for Rust"
repository = "https://github.com/vldm/profiler"
[dependencies]
tracing = "0.1.44"
tracing-subscriber = "0.3"
profiler_macros = { version = "0.2.0", path = "profiler_macros" }
thread_local = "1.1.9"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
core_affinity = "0.8.3"
thiserror = "1.0.40"
libc = { version = "0.2.183", optional = true }
sudo = { version = "0.6.0", optional = true }
# if we on macos - link with kperf
[target.'cfg(target_os = "macos")'.dependencies]
kperf-sys = { version = "0.0.3", optional = true }
# if we on linux - link with perf-event
[target.'cfg(target_os = "linux")'.dependencies]
perf-event = { version = "0.4.9", optional = true }
[features]
default = ["auto_detect"]
# rusage
libc = ["dep:libc"]
# macos kperf
auto_sudo = ["dep:sudo"]
kperf = ["dep:kperf-sys"]
perf_event = ["dep:perf-event"]
# auto detect and enable kperf or perf_event feature (see build.rs)
auto_detect = ["dep:kperf-sys", "dep:perf-event"]
[[bench]]
name = "easy"
harness = false
[[bench]]
name = "tracing"
harness = false
[[bench]]
name = "macro_extended"
harness = false
[[bench]]
name = "macos_kperf"
harness = false
[[bench]]
name = "typed_fibonacci"
harness = false