Skip to content

Conversation

derekxu16
Copy link
Contributor

For context: the VM team has learned that the implementation of CPU sample streaming in the VM can sometimes cause it to crash. We have concluded that the best way to proceed is by removing support for CPU sample streaming from the VM. Removing support for CPU sample streaming will mean that DevTools will no longer be able to use that support for its "Profile app start up" feature. We discussed this with @kenzieschmoll, and she approved of the plan to have users pass the --profile-startup Dart CLI flag or Flutter CLI flag instead when they want to see startup CPU samples.

@derekxu16 derekxu16 force-pushed the deprecate-profile-app-start-up-button branch 2 times, most recently from 14b1165 to 6122206 Compare August 1, 2025 18:15
@derekxu16 derekxu16 requested a review from elliette August 1, 2025 18:52
@derekxu16 derekxu16 marked this pull request as ready for review August 1, 2025 18:52
@derekxu16 derekxu16 requested review from kenzieschmoll, bkonyi and a team as code owners August 1, 2025 18:52
@@ -111,15 +111,15 @@ class _SecondaryControls extends StatelessWidget {
icon: Icons.timer,
label: 'Profile app start up',
tooltip:
'Load all Dart CPU samples that occurred before \n'
'the first Flutter frame was drawn (if available)',
'This button is deprecated. The new procedure for profiling an'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of deprecating the button, I think it would be better to remove it entirely (and update the website docs on CPU profiling to call out this flag)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I've updated this PR, and opened flutter/website#12272 to update the website.

@derekxu16 derekxu16 force-pushed the deprecate-profile-app-start-up-button branch from 6122206 to 1974038 Compare August 5, 2025 16:57
@derekxu16 derekxu16 changed the title [CPU Profiler] Deprecate the "Profile app start up" button [CPU Profiler] Delete the "Profile app start up" button Aug 5, 2025
@derekxu16 derekxu16 merged commit cb03036 into flutter:master Aug 6, 2025
41 checks passed
@derekxu16 derekxu16 deleted the deprecate-profile-app-start-up-button branch August 7, 2025 14:07
hrajwade96 pushed a commit to hrajwade96/devtools that referenced this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants