-
Notifications
You must be signed in to change notification settings - Fork 344
Store an instance and its references to console #5053
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
Conversation
|
||
import '../../../../shared/analytics/constants.dart'; | ||
import '../../../../shared/common_widgets.dart'; | ||
import '../../../../shared/primitives/utils.dart'; | ||
|
||
typedef SampleObtainer = InstanceRef Function(); | ||
abstract class ClassSampler { |
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 do we need an abstract class for this? will there be another class that extends ClassSampler at some point?
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.
Yes, table that diffs snapshots, will need another implementation.
packages/devtools_app/lib/src/shared/console/console_service.dart
Outdated
Show resolved
Hide resolved
), | ||
MenuItemButton( | ||
onPressed: sampleObtainer.instanceGraphToConsole, | ||
child: const Text('Browse an instance references in console'), |
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 wording could use a little work. Maybe "Browser references for a single instance"
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.
Made it 'Browse references for a single instance in console'
I want the word 'console', because without it user will not pay attention to console and will miss what is going on.
RELEASE_NOTE_EXCEPTION=[under the flag]