[webkit-qt] QtWebkit 5.212 QWebpage creation delay issue

Ramakanth Kesireddy rama.kesi at gmail.com
Tue Dec 15 08:17:56 PST 2020


Hi,

Am using Qt WebKit 5.212 Alpha4 release through yocto build on top of Qt
5.6.3 binaries and found good with respect to security bugs and fixes as
recommended and QtTestBrowser works fine on target.

Below are the cmake qtwebkit bb options:

 " \
    -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Linux
-DCMAKE_SYSTEM_PROCESSOR=arm \
    -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
    -DENABLE_WEBKIT2=OFF -DENABLE_OPENGL=OFF \
    -DENABLE_GEOLOCATION=OFF -DENABLE_DEVICE_ORIENTATION=OFF
-DENABLE_VIDEO=OFF -DENABLE_WEB_AUDIO=OFF -DUSE_LIBHYPHEN=OFF \
    -DPORT=Qt \
    -DCROSS_COMPILE=ON \
"

As we donot use javascript but only setHTML when HTML content is available
and setuserstylesheet for the webkit-scrollbar, would like to remove
unwanted initializations of QWebPage for our usecases.

On profiling, adding qDebug() logs with QElapsedTimer in qtwebkit source,
found that QWebPage creation takes lot of time. It could be javascript
being run in the same thread where CPU usage shoots upto 80% and more.

Is there any means to disable the Javascript or any other initializations
on creation of QWebpage being used internally in setHtml?

Not sure if this behavior is similar to
https://github.com/qtwebkit/qtwebkit/issues/903 as we observe increase in
CPU load(more than 90% spike) and memory when it is loading Html(using
setHTML() with more than 10seconds) on button press?

Appreciate if there are any suggestions to fix the behavior in this regard.

Thanks and Regards,

Ramakanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20201215/48315bc4/attachment.htm>


More information about the webkit-qt mailing list