Skip to main content

xmlMemoryDump

Function xmlMemoryDump 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlMemoryDump()
Expand description

Dump memory allocation statistics (upstream xmlmemory.h).

void xmlMemoryDump(void);

Prints the global counters to stderr (no leak detector is active in the default allocator).

§SAFETY

The function touches crate-global state only; it is safe as long as the caller respects the library’s global initialization/cleanup ordering (xmlInitParser before use, xmlCleanupParser only after all users are done).

Violating the global lifecycle ordering, or calling this after teardown or from a signal handler, is undefined behavior.