@@ -24,9 +24,13 @@ option! {
24
24
/// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
25
25
/// #
26
26
/// # fn main() {
27
+ /// # #[cfg(not(windows))] {
28
+ /// #
27
29
/// use tikv_jemalloc_ctl::profiling;
28
30
/// let lg_prof_interval = profiling::lg_prof_interval::read().unwrap();
29
31
/// println!("average interval between memory profile dumps: {}", lg_prof_interval);
32
+ /// #
33
+ /// # } // #[cfg(..)]
30
34
/// # }
31
35
/// ```
32
36
mib_docs: /// See [`lg_prof_interval`].
@@ -49,9 +53,13 @@ option! {
49
53
/// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
50
54
/// #
51
55
/// # fn main() {
56
+ /// # #[cfg(not(windows))] {
57
+ /// #
52
58
/// use tikv_jemalloc_ctl::profiling;
53
59
/// let lg_prof_sample = profiling::lg_prof_sample::read().unwrap();
54
60
/// println!("average interval between allocation samples: {}", lg_prof_sample);
61
+ /// #
62
+ /// # } // #[cfg(..)]
55
63
/// # }
56
64
/// ```
57
65
mib_docs: /// See [`lg_prof_sample`].
@@ -79,9 +87,13 @@ option! {
79
87
/// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
80
88
/// #
81
89
/// # fn main() {
90
+ /// # #[cfg(not(windows))] {
91
+ /// #
82
92
/// use tikv_jemalloc_ctl::profiling;
83
93
/// let prof_final = profiling::prof_final::read().unwrap();
84
94
/// println!("dump final memory usage to file: {}", prof_final);
95
+ /// #
96
+ /// # } // #[cfg(..)]
85
97
/// # }
86
98
/// ```
87
99
mib_docs: /// See [`prof_final`].
@@ -116,9 +128,13 @@ option! {
116
128
/// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
117
129
/// #
118
130
/// # fn main() {
131
+ /// # #[cfg(not(windows))] {
132
+ /// #
119
133
/// use tikv_jemalloc_ctl::profiling;
120
134
/// let prof = profiling::prof::read().unwrap();
121
135
/// println!("is memory profiling enabled: {}", prof);
136
+ /// #
137
+ /// # } // #[cfg(..)]
122
138
/// # }
123
139
/// ```
124
140
mib_docs: /// See [`prof`].
@@ -146,9 +162,13 @@ option! {
146
162
/// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
147
163
/// #
148
164
/// # fn main() {
165
+ /// # #[cfg(not(windows))] {
166
+ /// #
149
167
/// use tikv_jemalloc_ctl::profiling;
150
168
/// let prof_leak = profiling::prof_leak::read().unwrap();
151
169
/// println!("is leak reporting enabled: {}", prof_leak);
170
+ /// #
171
+ /// # } // #[cfg(..)]
152
172
/// # }
153
173
/// ```
154
174
mib_docs: /// See [`prof_leak`].
0 commit comments