D
david.jobet
Hello,
I'm trying to decrease the memory consumption of a large c++
application.
I'd like to identify the object which at a given t=T has the greatest
sizeof(object) * number_of_current_instance(object)
Do you know of any tools which can analyse that for me ?
I already made a search via google and found a lot of "memory leak
analysis" tools but no "allocation analysis" tools.
Alternative question : do you know of any mean to do it from the
inside without having to modify each constructor/destructor ?
I was thinking of overloading the global operators new and delete to
"count" live objects.
In the meantime, I thought I also need to have access to rtti to
identify the runtime type of the object but I'm pretty sure rtti of
the object is initialized *after* operator new is called, so I'm
pretty stuck.
Any idea ?
Thanks and kind regards
David
I'm trying to decrease the memory consumption of a large c++
application.
I'd like to identify the object which at a given t=T has the greatest
sizeof(object) * number_of_current_instance(object)
Do you know of any tools which can analyse that for me ?
I already made a search via google and found a lot of "memory leak
analysis" tools but no "allocation analysis" tools.
Alternative question : do you know of any mean to do it from the
inside without having to modify each constructor/destructor ?
I was thinking of overloading the global operators new and delete to
"count" live objects.
In the meantime, I thought I also need to have access to rtti to
identify the runtime type of the object but I'm pretty sure rtti of
the object is initialized *after* operator new is called, so I'm
pretty stuck.
Any idea ?
Thanks and kind regards
David