From 9cf5f0e940e4728dc5084a62be6e142ffe242b7c Mon Sep 17 00:00:00 2001 From: discord9 <55937128+discord9@users.noreply.github.com> Date: Mon, 12 May 2025 15:12:15 +0800 Subject: [PATCH] chore: more cfg stuff on windows (#6083) chore: more cfg stuff --- src/common/mem-prof/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() +}