⚠️ Forum Maintenance: Feb 6th, 8am - 14pm (UTC+2)
QT and custom allocators
swtsvn last edited by
I am using QTCore, QTGUI, QTWidget with C++ and would need to track memory allocations to fix huge performance issues in my project. I have custom tracking mechanism, but would need to override malloc/new for the internal allocations that QT does. Googled for a malloc hook or callback or something like that that QT provides, but couldn't find. Can anyone tell me if there is a direct way to inform QT to use custom allocators?
Hi and welcome to devnet,
IIRC, there might something to be done. Have a look at qmalloc.cpp. But I don't remember the exact constraints.
Hope it helps