【问题标题】:Chrome Developer Tools[TimeLine] Calculating Aggregated Time from json trace fileChrome 开发者工具[TimeLine] 从 json 跟踪文件计算聚合时间
【发布时间】:2016-06-05 05:01:35
【问题描述】:

有没有办法从 Chrome 开发者工具中的 TimeLine 记录后保存的跟踪文件中计算每个事件的总时间。或者是否存在一些 Node 样式的 Chrome API 仅转储此信息,而不是 chrome-remote-interface 提供的 Tracing.start API 转储的大量信息。

我可以使用https://github.com/paulirish/automated-chrome-profiling 上提供的示例自动执行基于时间线的记录,并获取 json 格式的跟踪文件。但我只需要从中提取/导出特定信息,如下所示。

例如

3.01s Total

7.73ms Loading

49.45ms Scripting

120.07ms Rendering

3.76ms Painting

19.68ms Other

2.81s Idle

【问题讨论】:

    标签: javascript json performance google-chrome google-chrome-devtools


    【解决方案1】:

    https://github.com/GoogleChrome/node-big-rig 中找到了非常接近我想要的东西

    【讨论】:

      【解决方案2】:

      我在@Abbas 提供的另一个类似问题中发现了这一点。把这个答案留在这里,以防将来对某人有用。

      回答

      有用的链接

      devtools-timeline-model 模块应提供预期的大部分功能。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-11-10
        • 1970-01-01
        • 1970-01-01
        • 2015-07-27
        • 2012-07-22
        • 2016-11-11
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多