pub struct ExportOptions {
pub include_system_allocations: bool,
pub verbose_logging: bool,
pub buffer_size: usize,
pub compress_output: bool,
}Expand description
Export options for JSON export - user-controllable settings
Fields§
§include_system_allocations: boolInclude system allocations in full enrichment (default: false)
⚠️ Performance Impact: Setting this to true can make export 5-10x slower!
false(default): Only user-tracked variables get full enrichment (~2-5 seconds)true: ALL allocations including system internals get enrichment (~10-40 seconds)
verbose_logging: boolEnable verbose logging during export (default: false)
buffer_size: usizeBuffer size for file I/O in bytes (default: 64KB)
compress_output: boolEnable data compression (default: false)
Implementations§
Source§impl ExportOptions
impl ExportOptions
Sourcepub fn include_system_allocations(self, include: bool) -> Self
pub fn include_system_allocations(self, include: bool) -> Self
Enable system allocation enrichment (⚠️ SLOW - 5-10x slower!)
§Warning
This will significantly slow down the export process and generate much larger files. Only use for deep debugging or system analysis.
§Example
let options = ExportOptions::new().include_system_allocations(true);
tracker.export_to_json_with_options("debug_output", options)?;Sourcepub fn verbose_logging(self, verbose: bool) -> Self
pub fn verbose_logging(self, verbose: bool) -> Self
Enable verbose logging during export
Sourcepub fn buffer_size(self, size: usize) -> Self
pub fn buffer_size(self, size: usize) -> Self
Set custom buffer size for file I/O
Sourcepub fn compress_output(self, compress: bool) -> Self
pub fn compress_output(self, compress: bool) -> Self
Enable output compression (experimental)
Trait Implementations§
Source§impl Clone for ExportOptions
impl Clone for ExportOptions
Source§fn clone(&self) -> ExportOptions
fn clone(&self) -> ExportOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExportOptions
impl Debug for ExportOptions
Auto Trait Implementations§
impl Freeze for ExportOptions
impl RefUnwindSafe for ExportOptions
impl Send for ExportOptions
impl Sync for ExportOptions
impl Unpin for ExportOptions
impl UnwindSafe for ExportOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more