[xml] how can i measure memory consumption?



hi,

for some testing i wanted to measure how much memory is used when
loading an xml file.

what is the preferred way to do this?

i tried to write wrappers around xmlMalloc/free/realloc/strdup which
logged the mem-sizes, and told libxml to use the wrappers via
xmlMemSetup, but i wanted to be sure that i am not missing anything.

is there a higher level function to do that?


actually xmlMemUsed would be ideal for my needs ( i don't need all the
details), but it always returns 0 for me.

thanks,
gabor




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]