@@ -24,9 +24,13 @@ option! {
2424 /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
2525 /// #
2626 /// # fn main() {
27+ /// # #[cfg(not(windows))] {
28+ /// #
2729 /// use tikv_jemalloc_ctl::profiling;
2830 /// let lg_prof_interval = profiling::lg_prof_interval::read().unwrap();
2931 /// println!("average interval between memory profile dumps: {}", lg_prof_interval);
32+ /// #
33+ /// # } // #[cfg(..)]
3034 /// # }
3135 /// ```
3236 mib_docs: /// See [`lg_prof_interval`].
@@ -49,9 +53,13 @@ option! {
4953 /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
5054 /// #
5155 /// # fn main() {
56+ /// # #[cfg(not(windows))] {
57+ /// #
5258 /// use tikv_jemalloc_ctl::profiling;
5359 /// let lg_prof_sample = profiling::lg_prof_sample::read().unwrap();
5460 /// println!("average interval between allocation samples: {}", lg_prof_sample);
61+ /// #
62+ /// # } // #[cfg(..)]
5563 /// # }
5664 /// ```
5765 mib_docs: /// See [`lg_prof_sample`].
@@ -79,9 +87,13 @@ option! {
7987 /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
8088 /// #
8189 /// # fn main() {
90+ /// # #[cfg(not(windows))] {
91+ /// #
8292 /// use tikv_jemalloc_ctl::profiling;
8393 /// let prof_final = profiling::prof_final::read().unwrap();
8494 /// println!("dump final memory usage to file: {}", prof_final);
95+ /// #
96+ /// # } // #[cfg(..)]
8597 /// # }
8698 /// ```
8799 mib_docs: /// See [`prof_final`].
@@ -116,9 +128,13 @@ option! {
116128 /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
117129 /// #
118130 /// # fn main() {
131+ /// # #[cfg(not(windows))] {
132+ /// #
119133 /// use tikv_jemalloc_ctl::profiling;
120134 /// let prof = profiling::prof::read().unwrap();
121135 /// println!("is memory profiling enabled: {}", prof);
136+ /// #
137+ /// # } // #[cfg(..)]
122138 /// # }
123139 /// ```
124140 mib_docs: /// See [`prof`].
@@ -146,9 +162,13 @@ option! {
146162 /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
147163 /// #
148164 /// # fn main() {
165+ /// # #[cfg(not(windows))] {
166+ /// #
149167 /// use tikv_jemalloc_ctl::profiling;
150168 /// let prof_leak = profiling::prof_leak::read().unwrap();
151169 /// println!("is leak reporting enabled: {}", prof_leak);
170+ /// #
171+ /// # } // #[cfg(..)]
152172 /// # }
153173 /// ```
154174 mib_docs: /// See [`prof_leak`].
0 commit comments