Saving chrome timeline data via javascript api

£可爱£侵袭症+ 提交于 2019-12-12 11:41:20

问题


Starting and stopping the dev tools timeline is easy:

console.timeline("timeline1");
console.timelineEnd();

I am looking for a way to extract the data from a timeline and post it to a server. Or trigger the browsers 'save timeline data'. I want to collect timeline data from peoples machines while they test a web application.

Is this possible?

Thanks.


回答1:


This data might be available in an extension, but unfortunately it's not available in standard Javascript. Also, as mentioned before "timeline" is now deprecated, instead you should use console.time() or console.timeEnd().



来源:https://stackoverflow.com/questions/22613911/saving-chrome-timeline-data-via-javascript-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!