-
Notifications
You must be signed in to change notification settings - Fork 336
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
Port CPU bottom up table to Flutter. #1659
Conversation
); | ||
} | ||
|
||
void _performOnDataRoots( |
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.
This is a nice approach to this problem.
@@ -161,6 +161,20 @@ void main() { | |||
expect(find.byKey(const Key('empty')), findsOneWidget); | |||
}); | |||
|
|||
testWidgets('displays with multiple data roots', |
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.
Please also add a test for interactions on the roots: ensure that a few of the roots are properly expandable without breaking the state of the rest of the tree.
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.
Also, include tests for the cases where the roots of the tree are changed. We don't want to get a red screen of death when we request new data and we get a broken tree because there were fewer roots being used by the same tree representation.
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.
done. ptal
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.
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.
LGTM
# Conflicts: # packages/devtools_app/lib/src/profiler/flutter/cpu_profiler.dart # packages/devtools_app/test/flutter/cpu_profiler_test.dart
This change applies to both the Timeline page (#1289) and the Performance page (#1287)