flutter / flutter/devtools

Provide a way to copy the path to a file in the CPU Profiler

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

描述

When running DevTools in a browser, on the CPU Profiler page, in the Bottom Up tab (and presumably elsewhere as well) each method is followed by a link whose label is the URI of the file (or maybe library) in which the method is defined. Clicking on the link opens the Debugger page showing the indicated file, but opens to the wrong location in the file. Given that the Debugger is in maintenance mode I don't expect that we're going to fix this behavior, but going to the debugger isn't really helpful anyway given that the method is no longer on the stack.

What would be helpful, and what I'm asking for, is to have a 'copy' button added after the link that would copy the path to the file. That would allow me to easily navigate to the file in my IDE.

贡献指南

打开贡献指南

调研方向

从 CPU Profiler 页面的 Bottom Up 标签页开始,检查每个方法的文件 URI 链接是如何渲染的。在链接旁添加一个复制控件,用于复制文件路径或 URI 以便在 IDE 中使用,并验证复制的值与显示的链接一致,而无需导航到 Debugger。

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

评估

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

把新 issue 发到你的邮箱

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