I’m trying to implement simple webprofiler using QtWebKit (by extending Ghost.py). I need to measure when each HTTP request started and finished.
I can use finished signal from QNetworkAccessManager to get when request ended, but how do i know when request started? QNetworkAccessManager makes async requests and also uses queue, but there is no started signal. When is request actually started and how I can attach to this event?
One possible resolution is to create subclass under
QNetworkAccessManagerand pass it toQWebPage. Inherited class should override methodcreateRequest, which can measure start time of the HTTP request.