From 2c1ca98abaf6756d3246841cc3cf4ca3f617efca Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Wed, 9 Jun 2021 22:55:50 +0200 Subject: Make `MemoryUsage` work on Windows --- crates/profile/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/profile/Cargo.toml') 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 [target.'cfg(target_os = "linux")'.dependencies] perf-event = "0.4" +[target.'cfg(windows)'.dependencies] +winapi = { version = "0.3.8", features = ["psapi"] } + [features] cpu_profiler = [] jemalloc = ["jemalloc-ctl"] -- cgit v1.2.3