Skip to main content

start

Function start 

Source
pub fn start() -> MemScopeResult<MemScopeGuard>
Expand description

Start memscope-rs with the default configuration.

Equivalent to start_with called with MemScopeConfig::default(). The returned guard triggers the exit-path export on drop.

ยงErrors

Returns Err(MemScopeError) if logging init, global tracker init, or lifecycle hook installation fails. The most common failure is calling start() twice without resetting global tracking in between.