-
Notifications
You must be signed in to change notification settings - Fork 319
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
Add ability to profile app start up and improve CPU profile caching #3357
Conversation
@@ -114,6 +115,8 @@ class IconLabelButton extends StatelessWidget { | |||
|
|||
final String tooltip; | |||
|
|||
final EdgeInsetsGeometry tooltipPadding; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
packages/devtools_app/lib/src/profiler/cpu_profile_controller.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/profiler/cpu_profile_controller.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/profiler/cpu_profile_controller.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/profiler/cpu_profile_controller.dart
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Work towards #2982. We will still use the DDS apis once they are available.
When an app start up profile is available, clicking this button will load the profile and automatically select the AppStartUp usertag:
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.
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.