mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
some updates with memory debugging facilities while messing with libxslt
* xmlmemory.c python/libxml.c python/libxml2-python-api.xml: some updates with memory debugging facilities while messing with libxslt python bindings Daniel
This commit is contained in:
@ -78,6 +78,18 @@ static xmlStrdupFunc strdupFunc = NULL;
|
||||
static void
|
||||
libxml_xmlErrorInitialize(void); /* forward declare */
|
||||
|
||||
PyObject *
|
||||
libxml_xmlMemoryUsed(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
{
|
||||
long ret;
|
||||
PyObject *py_retval;
|
||||
|
||||
ret = xmlMemUsed();
|
||||
|
||||
py_retval = libxml_longWrap(ret);
|
||||
return (py_retval);
|
||||
}
|
||||
|
||||
PyObject *
|
||||
libxml_xmlDebugMemory(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||
{
|
||||
|
@ -310,5 +310,9 @@
|
||||
<info>Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it.</info>
|
||||
<return type='void'/>
|
||||
</function>
|
||||
<function name='xmlMemoryUsed' file='python'>
|
||||
<info>Returns the total amount of memory allocated by libxml2</info>
|
||||
<return type='int' info='number of bytes allocated'/>
|
||||
</function>
|
||||
</symbols>
|
||||
</api>
|
||||
|
@ -149,6 +149,7 @@ debugMemory()
|
||||
dumpMemory()
|
||||
htmlCreatePushParser()
|
||||
htmlSAXParseFile()
|
||||
memoryUsed()
|
||||
newNode()
|
||||
pythonCleanupParser()
|
||||
setEntityLoader()
|
||||
|
Reference in New Issue
Block a user