slimerjs icon indicating copy to clipboard operation
slimerjs copied to clipboard

Network timings of the requests

Open abozhilov opened this issue 11 years ago • 4 comments

I'd like to have timing information of the requests in particular page. At the moment PhantomJS does not support this. I need dns resolution time, connection time, first byte and last byte. Most important are the first two. Any plans to add those to the slimerjs?

abozhilov avatar Oct 23 '13 12:10 abozhilov

No plan for the moment... But we could add this in the future, if we can have such information from Gecko...

laurentj avatar Oct 23 '13 15:10 laurentj

As I wrote in PhantomJS repository, those timings are particularly important in network monitoring. The XPCOM provides this information.
https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIHttpActivityObserver https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsISocketTransport

abozhilov avatar Oct 24 '13 08:10 abozhilov

Any progress on this issue?

abozhilov avatar Oct 30 '14 12:10 abozhilov

Is this supported now? I can get TTFB from window.performance.timing but not DNS resolution time and connection time. They always show zero.

revanth98 avatar Dec 13 '16 22:12 revanth98