使用自动化,使用Chrome devtools时间轴记录性能

时间:2016-05-04 15:59:16

标签: angularjs performance google-chrome protractor google-chrome-devtools

我目前正在尝试为Angular应用程序编写一些有意义的性能测试。我使用量角器进行e2e测试,目前正在使用protractor-perf。虽然它有助于确定存在性能问题,但实际上无法确定导致性能问题的原因。但是,您可以使用chrome devtools记录时间轴/配置文件并检查结果或保存文件以供将来使用,从而手动识别问题的根源。 我想知道是否有自动记录时间表或配置文件并保存文件以供将来分析?

1 个答案:

答案 0 :(得分:2)

Paul Irish的这个存储库:https://github.com/paulirish/automated-chrome-profiling可能对您有用。它通过Web Socket使用Chrome Remote Debugging Protocol interface