flutter / flutter/devtools

CPU Profiler Fetching CPU sample forever

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

描述

The CPU Profiler appears to work correctly in Debug mode, where CPU sample data is loaded almost immediately after recording. However, in Profile mode, the profiler seems to get stuck indefinitely in the "Fetching CPU samples" state.

Steps to Reproduce in my case
Launch the app in Profile mode.
Open DevTools > CPU Profiler.
Start recording.
Perform a simple action in the app.
Stop recording after a very short duration (e.g. 0.5 seconds).

https://github.com/user-attachments/assets/71c86455-0f30-460f-8e1a-fb33040217da
___
**DevTools version**: 2.54.2
**Connected Device**:
CPU / OS: arm64 (64 bit) android
Connected app type: Flutter native (profile build)
Dart Version: 3.11.5
Flutter Version: 3.41.9 / stable
Framework / Engine: 00b0c91f06 / 42d3d75a56

贡献指南

打开贡献指南

调研方向

首先,在 Flutter profile build 中通过 DevTools > CPU Profiler 复现该问题,然后跟踪 CPU sample 获取入口,以确定请求为何始终无法完成。当一段简短的 profile 记录离开 "Fetching CPU samples" 状态并显示 CPU sample 数据,且表现与现有的 Debug-mode 行为一致时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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