File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ heap_v2/524288
2+ t*: 0: 0 [0: 0]
3+ t0: 0: 0 [0: 0]
Original file line number Diff line number Diff line change @@ -215,3 +215,24 @@ option! {
215215 /// ```
216216 mib_docs: /// See [`background_thread`].
217217}
218+
219+ option ! {
220+ prof[ str : b"opt.prof\0 " , non_str: 2 ] => bool |
221+ ops: r |
222+ docs:
223+ /// Memory profiling enabled/disabled. If enabled, profile memory allocation activity.
224+ ///
225+ /// # Examples
226+ ///
227+ /// ```
228+ /// # #[global_allocator]
229+ /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
230+ /// #
231+ /// # fn main() {
232+ /// use tikv_jemalloc_ctl::opt;
233+ /// let prof = opt::prof::read().unwrap();
234+ /// println!("Jemalloc profiling enabled: {}", prof);
235+ /// # }
236+ /// ```
237+ mib_docs: /// See [`prof`].
238+ }
Original file line number Diff line number Diff line change 1+ heap_v2/524288
2+ t*: 0: 0 [0: 0]
3+ t0: 0: 0 [0: 0]
4+ t1: 0: 0 [0: 0]
You can’t perform that action at this time.
0 commit comments