[webkit-help] How to clear memory held by QtWebkit?
probablynotthebestone at gmail.com
Tue Dec 13 08:34:54 PST 2016
is there a way to deinitialise QtWebkit in runtime completely? For example
for this code:
class Deleter : public QObject
int main(int argc, char *argv)
QApplication app(argc, argv);
graphicsWebView = new QGraphicsWebView;
QTimer::singleShot(10000, &d, SLOT(deleteWebView()));
After deleting graphicsWebView object there is still used about 2mb of
physical memory (more than 6 mb of virtual memory) by Webkit's OSAllocator
(I tracked mmap's calls by OSAllocator and then correlated with
/proc/pid/smaps). Much of the memory seems to be requested
by JSC::JIT::compile function.
Is there some way to completely clean QtWebkit after it was initialised?
This is Qt 4.8
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-help