aboutsummaryrefslogtreecommitdiff
path: root/crates/profile/Cargo.toml
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-06-09 21:55:50 +0100
committerJonas Schievink <[email protected]>2021-06-10 13:06:35 +0100
commit2c1ca98abaf6756d3246841cc3cf4ca3f617efca (patch)
treec95c2fda453144a93f77f04cce316fb52f611d73 /crates/profile/Cargo.toml
parent85056423e3d14fc59bca06d3b2e0c44041653945 (diff)
Make `MemoryUsage` work on Windows
Diffstat (limited to 'crates/profile/Cargo.toml')
-rw-r--r--crates/profile/Cargo.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/profile/Cargo.toml b/crates/profile/Cargo.toml
index 1a8c8f862..653d3d983 100644
--- a/crates/profile/Cargo.toml
+++ b/crates/profile/Cargo.toml
@@ -20,6 +20,9 @@ jemalloc-ctl = { version = "0.4.1", package = "tikv-jemalloc-ctl", optional = tr
20[target.'cfg(target_os = "linux")'.dependencies] 20[target.'cfg(target_os = "linux")'.dependencies]
21perf-event = "0.4" 21perf-event = "0.4"
22 22
23[target.'cfg(windows)'.dependencies]
24winapi = { version = "0.3.8", features = ["psapi"] }
25
23[features] 26[features]
24cpu_profiler = [] 27cpu_profiler = []
25jemalloc = ["jemalloc-ctl"] 28jemalloc = ["jemalloc-ctl"]