Skip to content

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

Merged
merged 20 commits into from
Jan 14, 2023
Merged

Conversation

polina-c
Copy link
Contributor

@polina-c polina-c commented Jan 14, 2023

RELEASE_NOTE_EXCEPTION=[under the flag]

@polina-c polina-c requested review from bkonyi and a team as code owners January 14, 2023 00:19

import '../../../../shared/analytics/constants.dart';
import '../../../../shared/common_widgets.dart';
import '../../../../shared/primitives/utils.dart';

typedef SampleObtainer = InstanceRef Function();
abstract class ClassSampler {
Copy link
Member

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?

Copy link
Contributor Author

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.

),
MenuItemButton(
onPressed: sampleObtainer.instanceGraphToConsole,
child: const Text('Browse an instance references in console'),
Copy link
Member

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"

Copy link
Contributor Author

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.

@polina-c polina-c merged commit 8168b95 into flutter:master Jan 14, 2023
@polina-c polina-c deleted the eval2 branch January 14, 2023 01:20
@CoderDake CoderDake mentioned this pull request Jan 24, 2023
7 tasks
@DartDevtoolWorkflowBot DartDevtoolWorkflowBot mentioned this pull request Jan 24, 2023
7 tasks
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.

2 participants