flutter / flutter/devtools

CPU Profiler shows percentages > 100%

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

描述

Encountered in DevTools 2.25.0 while running in VSCode.

It seems like the duration used to calculate "Total Time" is smaller than the total time spent executing under some methods.

**Screenshot:**

image

**Data:** [dart_devtools_2023-08-01_12_22_30.662.json.zip](https://github.com/flutter/devtools/files/12231861/dart_devtools_2023-08-01_12_22_30.662.json.zip)

FYI @kenzieschmoll

贡献指南

打开贡献指南

调研方向

首先,使用附带的 dart_devtools_2023-08-01_12_22_30.662.json.zip 数据在 DevTools 2.25.0 中复现 CPU Profiler 问题。检查 Total Time 与方法执行时长的比较方式;对于受影响的 profile,当 profiler 百分比保持在 100% 或以下时即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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