diff --git a/src/common/mem-prof/src/lib.rs b/src/common/mem-prof/src/lib.rs index e273a81a94..69c5f79138 100644 --- a/src/common/mem-prof/src/lib.rs +++ b/src/common/mem-prof/src/lib.rs @@ -23,3 +23,13 @@ pub use jemalloc::{dump_flamegraph, dump_pprof, dump_profile}; pub async fn dump_profile() -> error::Result> { error::ProfilingNotSupportedSnafu.fail() } + +#[cfg(windows)] +pub async fn dump_pprof() -> error::Result> { + error::ProfilingNotSupportedSnafu.fail() +} + +#[cfg(windows)] +pub async fn dump_flamegraph() -> error::Result> { + error::ProfilingNotSupportedSnafu.fail() +}