通过JavaScript API保存Chrome时间轴数据 [英] Saving chrome timeline data via javascript api

查看:85
本文介绍了通过JavaScript API保存Chrome时间轴数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动和停止开发工具的时间轴很容易:

Starting and stopping the dev tools timeline is easy:

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

我正在寻找一种从时间轴提取数据并将其发布到服务器的方法.或触发浏览器保存时间轴数据".我想在人们的机器测试Web应用程序时收集时间表数据.

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.

这可能吗?

谢谢.

推荐答案

此数据可能在扩展程序中可用,但不幸的是,在标准Javascript中不可用.另外,如前所述,现在不建议使用时间轴",而应使用console.time()或console.timeEnd().

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().

这篇关于通过JavaScript API保存Chrome时间轴数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆