Gar*_* BN 7 javascript performance firefox google-chrome
我使用谷歌浏览器分析一些使用Javascript动态加载脚本和其他资源的网页的性能.
我使用了performance.getEntries()方法,但我注意到Chrome只记录了前150个资源.我找不到任何方法来获取更多条目,或删除旧条目.
我看到性能对象有clearMeasures或clearMarks等方法,但我没有用它们来删除条目.
所以我的问题是:
小智 4
你可以试试
performance.webkitSetResourceTimingBufferSize(your_number);
Run Code Online (Sandbox Code Playgroud)
不管怎样,在 Firefox 中,您可以使用
performance.setResourceTimingBufferSize(your_number);
Run Code Online (Sandbox Code Playgroud)
有关浏览器及其支持的完整列表window.performance,请参阅http://compatibility.shwups-cms.ch/en/home?&property=performance
| 归档时间: |
|
| 查看次数: |
833 次 |
| 最近记录: |