flutter / flutter/devtools

DevTools performance page broken when using systrace recorder

未关闭
#6,524 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
P2 screen: performance
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

When launching an app with `--trace-systrace`, the performance tab in DevTools just spins, and JS console shows the following:
![image](https://github.com/flutter/devtools/assets/43759233/2005e70c-dfcd-48d5-8d64-53dce6c13fdb)

@bkonyi is there a way for us to check at runtime which timeline recorder is being used? If the systrace recorder is in use, in DevTools we should gate our logic that depends on timeline events from the VM service and we should provide the user with instructions on how to load this trace into DevTools from file or into ui.perfetto.dev directly.

贡献指南

打开贡献指南

调研方向

从 DevTools 的性能标签页处理来自 VM service 的时间线事件入手,调查在使用 --trace-systrace 时如何在运行时识别活动的时间线记录器。完成标准是:对于 systrace 跟踪,页面不再持续转圈,并且用户会收到从文件或在 ui.perfetto.dev 中加载跟踪的说明。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart
领域
devtools, performance
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。