【问题标题】:chrome dev tool resource timing vs performance timing APIschrome 开发工具资源计时与性能计时 API
【发布时间】:2017-04-30 12:27:04
【问题描述】:

我正在比较来自 chrome 开发工具和性能计时 API 的 html 图像资源计时。

chrome 开发工具中的端到端资源获取时间确实与性能计时持续时间相匹配。但不适用于其他方面,例如 TCP 连接、域查找等……知道吗,Chrome 错误(版本 54.0.2840.99 m(64 位))?

Chrome 开发工具 -> 初始连接(TCP 连接) -> 243.28ms

PerformanceTimingAPi -> 0 (connectEnd – connectStart = 0 -0 ?)

see the capture of network trace

【问题讨论】:

    标签: performance google-chrome-devtools


    【解决方案1】:

    我今天注意到 Chrome 61.0.3163.91 也是如此。

    我没有在网上找到任何官方答案,但我很确定这是因为 Performance Timing API 从 navigationStart 开始测量,而网络 Panel 从 responseEnd 开始(或者当它开始解析HTML)。差距始终相同,接近于 navigationStart 和 responseEnd 之间的差距。

    【讨论】:

      猜你喜欢
      • 2021-04-21
      • 1970-01-01
      • 2021-03-08
      • 2011-04-01
      • 2019-02-21
      • 1970-01-01
      • 1970-01-01
      • 2013-05-21
      • 2016-12-23
      相关资源
      最近更新 更多