自动记录并保存chrome开发人员工具在页面加载时分析数据? [英] Auto record and save chrome developer tools profiling data on page load?
问题描述
Chrome开发人员工具可以选择开始/停止在时间轴选项卡上记录关于内存,画图,截图,JS配置文件的性能分析数据。一旦我刷新页面,录制就会自动开始并在页面加载时停止。
有没有办法
< blockquote>
1)自动在后台开始录制,而不需要
在chrome / node-webkit窗口中打开开发人员工具。也许可以通过一些Chrome API来启用
录制,这可以在应用程序加载
时调用。2)将录制的数据转储到日志中文件(例如json文件),一旦
记录结束。
任何指向正确方向的指针都会被赞赏。
在下面的链接中找到我的答案。感谢@Paul Irish
Chrome developer tools has an option to Start/Stop Recording profiling data with respect to Memory,Paint,Screenshots,JS Profile on the Timeline tab. Once I refresh a page the recording begins automatically and stops when the page has loaded.
Is there a way to
1)Start this recording in the background automatically without needing to open developer tools in chrome/node-webkit window. Maybe the recording can be enabled via some Chrome API which can be called when the application loads
2)Dump the recorded data into a log file (e.x. a json file) once the recording is over.
Any pointers in the right direction will be appreciated.
Found my answer here in the link below. Thanks to @Paul Irish
这篇关于自动记录并保存chrome开发人员工具在页面加载时分析数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!