diff options
author | Jonas Schievink <[email protected]> | 2021-06-09 21:55:50 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-06-10 13:06:35 +0100 |
commit | 2c1ca98abaf6756d3246841cc3cf4ca3f617efca (patch) | |
tree | c95c2fda453144a93f77f04cce316fb52f611d73 /crates/profile/Cargo.toml | |
parent | 85056423e3d14fc59bca06d3b2e0c44041653945 (diff) |
Make `MemoryUsage` work on Windows
Diffstat (limited to 'crates/profile/Cargo.toml')
-rw-r--r-- | crates/profile/Cargo.toml | 3 |
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] |
21 | perf-event = "0.4" | 21 | perf-event = "0.4" |
22 | 22 | ||
23 | [target.'cfg(windows)'.dependencies] | ||
24 | winapi = { version = "0.3.8", features = ["psapi"] } | ||
25 | |||
23 | [features] | 26 | [features] |
24 | cpu_profiler = [] | 27 | cpu_profiler = [] |
25 | jemalloc = ["jemalloc-ctl"] | 28 | jemalloc = ["jemalloc-ctl"] |