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
Remove export and source from memory screen. #5135
Conversation
packages/devtools_app/lib/src/screens/memory/panes/leaks/diagnostics/leak_analyzer.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/shared/memory/adapted_heap_data.dart
Outdated
Show resolved
Hide resolved
I managed to mess up this PRs with another one (#5134). So, converting this to draft for now to land performance first. |
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.
we should also delete controller.memorySource logic. This should not be needed for future implementation of offline mode since the offline snapshot will use a different instance of MemoryController
|
/// This flag will be needed for offline mode implementation. | ||
bool offline = false; | ||
|
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 actually will not be needed. We will use offlineController.offlineMode.value
to check whether we are in offline mode or not.
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.
I want to preserve all references to this variable, so that we do not forget to review them and decide what will be their behavior in offline mode.
packages/devtools_app/lib/src/screens/memory/panes/chart/chart_control_pane.dart
Outdated
Show resolved
Hide resolved
packages/devtools_app/lib/src/screens/memory/shared/primitives/memory_timeline.dart
Outdated
Show resolved
Hide resolved
); | ||
}); | ||
|
||
testWidgetsWithWindowSize('Chart Select Hover Test', windowSize, |
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 are we removing this test? seems we just need to switch the canned data to be loaded as live data instead of offline data, and then we can still test the chart hover card
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.
The test is broken. It does not test hover card. There is no card on the image.
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.
And there is Terry's TODO in the comments.
This reverts commit d6b91b2.
Fixes #5045
I postponed code clean up, because some code will be helpful for future implementation of offline mode.