DevTools "Count widget builds" only works in debug mode, not in --profile mode
- 主要语言
- Dart
- 星标
- 1.7k
- 派生
- 404
- 平均合并
- 6 天 17 小时
- 30 天内合并 PR
- 18
描述
### Steps to reproduce
1. flutter run --profile --track-widget-creation
2. Open DevTools → Performance
3. The "Count widget builds" checkbox is greyed out.
### Expected results
The flag name `--track-widget-creation` suggests this should still be
available in profile mode. Documentation should clarify that widget build tracking is available debug-only.
### Actual results
I could not check the box to display the widget rebuilds, and the tooltip was not any help either. Documentation never mentions this. AI doesn't know.
### Code sample
Code sample
```dart
[Paste your code here]
```
### Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
### Logs
Logs
```console
[Paste your logs here]
```
### Flutter Doctor output
Doctor output
```console
[Paste your output here]
```
贡献指南
调研方向
从 --track-widget-creation 的文档以及 DevTools Performance 页面中的“Count widget builds”控件开始,使用 `flutter run --profile --track-widget-creation` 重现复选框被禁用的情况。完成标准是文档和工具提示明确说明 widget 构建跟踪仅在 debug 模式下可用,包括 profile 模式下的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- dart
- 领域
- documentation, tooling
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100