Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to profile app start up and improve CPU profile caching #3357

Merged
merged 4 commits into from
Sep 14, 2021

Conversation

kenzieschmoll
Copy link
Member

@kenzieschmoll kenzieschmoll commented Sep 10, 2021

Work towards #2982. We will still use the DDS apis once they are available.
Screen Shot 2021-09-09 at 3 44 17 PM
When an app start up profile is available, clicking this button will load the profile and automatically select the AppStartUp usertag:
Screen Shot 2021-09-10 at 3 45 31 PM
When an app start up profile is not available, a warning message will be displayed. The default profiling rate may cause this case to occur more often than we like. See flutter/flutter#84884 (comment) for some more details.
Screen Shot 2021-09-09 at 3 39 27 PM

The PR also fixes #3317 and improves the caching for the CPU profiler in general. This will prevent duplicate processing actions when a user is changing filters back and forth. This also fixes bugs where the filters were not applied correctly to profiles cached by user tag.

@@ -114,6 +115,8 @@ class IconLabelButton extends StatelessWidget {

final String tooltip;

final EdgeInsetsGeometry tooltipPadding;
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this needed? Is there a reason we can't just give all tooltips a reasonable default?

Copy link
Member Author

Choose a reason for hiding this comment

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

Multiline tooltips will look bad without specifying the padding. Single line tooltips have adequate spacing on the top and bottom, but if there is a new line char in the tooltip message, that top and bottom spacing disappears.

Copy link
Contributor

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm

@kenzieschmoll kenzieschmoll merged commit fffa8f6 into flutter:master Sep 14, 2021
@kenzieschmoll kenzieschmoll deleted the temp-start-up-profile branch September 14, 2021 17:02
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.

Cache filtered CPU profiles
2 participants