chore: more cfg stuff on windows (#6083)

chore: more cfg stuff
This commit is contained in:
discord9
2025-05-12 15:12:15 +08:00
committed by GitHub
parent 2a0e9c930d
commit 9cf5f0e940

View File

@@ -23,3 +23,13 @@ pub use jemalloc::{dump_flamegraph, dump_pprof, dump_profile};
pub async fn dump_profile() -> error::Result<Vec<u8>> {
error::ProfilingNotSupportedSnafu.fail()
}
#[cfg(windows)]
pub async fn dump_pprof() -> error::Result<Vec<u8>> {
error::ProfilingNotSupportedSnafu.fail()
}
#[cfg(windows)]
pub async fn dump_flamegraph() -> error::Result<Vec<u8>> {
error::ProfilingNotSupportedSnafu.fail()
}