Function sentry_contrib_native::clear_modulecache[][src]

pub fn clear_modulecache()

Clears the internal module cache.

For performance reasons, Sentry will cache the list of loaded libraries when capturing events. This cache can get out-of-date when loading or unloading libraries at runtime. It is therefore recommended to call clear_modulecache when doing so, to make sure that the next call to Event::capture will have an up-to-date module list.

Examples

let lib = unsafe { libloading::Library::new("/path/to/liblibrary.so") }?;
clear_modulecache();