CPU Profiler Fetching CPU sample forever
- Vorherrschende Sprache
- Dart
- Sterne
- 1.7k
- Forks
- 404
- Ø Merge
- 6 T. 17 Std.
- Gemergte PRs (30 T.)
- 18
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Start by reproducing the issue through DevTools > CPU Profiler in a Flutter profile build, then trace the CPU sample fetching entry point to determine why the request never completes. Done means a short profile recording leaves the "Fetching CPU samples" state and displays CPU sample data, matching the existing Debug-mode behavior.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- dart, flutter
- Bereich
- devtools, performance
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 52/100