diff options
Diffstat (limited to 'crates/ra_prof/Cargo.toml')
-rw-r--r-- | crates/ra_prof/Cargo.toml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/crates/ra_prof/Cargo.toml b/crates/ra_prof/Cargo.toml index c33b5121a..c82b9f76d 100644 --- a/crates/ra_prof/Cargo.toml +++ b/crates/ra_prof/Cargo.toml | |||
@@ -4,6 +4,7 @@ name = "ra_prof" | |||
4 | version = "0.1.0" | 4 | version = "0.1.0" |
5 | authors = ["rust-analyzer developers"] | 5 | authors = ["rust-analyzer developers"] |
6 | publish = false | 6 | publish = false |
7 | license = "MIT OR Apache-2.0" | ||
7 | 8 | ||
8 | [lib] | 9 | [lib] |
9 | doctest = false | 10 | doctest = false |
@@ -12,11 +13,15 @@ doctest = false | |||
12 | ra_arena = { path = "../ra_arena" } | 13 | ra_arena = { path = "../ra_arena" } |
13 | once_cell = "1.3.1" | 14 | once_cell = "1.3.1" |
14 | backtrace = { version = "0.3.44", optional = true } | 15 | backtrace = { version = "0.3.44", optional = true } |
16 | cfg-if = "0.1.10" | ||
17 | libc = "0.2.73" | ||
15 | 18 | ||
16 | [target.'cfg(not(target_env = "msvc"))'.dependencies] | 19 | [target.'cfg(target_os = "linux")'.dependencies] |
17 | jemallocator = { version = "0.3.2", optional = true } | 20 | perf-event = "0.4" |
18 | jemalloc-ctl = { version = "0.3.3", optional = true } | ||
19 | 21 | ||
20 | [features] | 22 | [features] |
21 | jemalloc = [ "jemallocator", "jemalloc-ctl" ] | ||
22 | cpu_profiler = [] | 23 | cpu_profiler = [] |
24 | |||
25 | # Uncomment to enable for the whole crate graph | ||
26 | # default = [ "backtrace" ] | ||
27 | # default = [ "cpu_profiler" ] | ||