-
Notifications
You must be signed in to change notification settings - Fork 344
Store an instance to console #5049
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
packages/devtools_app/lib/src/screens/memory/panes/diff/controller/sampler.dart
Show resolved
Hide resolved
final response1 = await serviceManager.service! | ||
.evaluate(isolateId, instance.id!, 'toString()'); | ||
print('!!!! eval without scope: ' + response1.json!['valueAsString']); | ||
|
||
// eval object | ||
final response2 = await serviceManager.service!.evaluate( | ||
isolateId, | ||
instance.id!, | ||
'identityHashCode(this)', | ||
scope: {'this': instance.id!}, | ||
); | ||
print('!!!! eval with scope: ' + response2.json!['valueAsString']); |
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.
are these supposed to still be there? both the responses and the prints?
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.
they are under TODO to move them out
|
||
@override | ||
final HeapClassName heapClass; | ||
}) : super(objectsByPath, heapClass); |
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.
these can both be super parameters in the constructor directly
DiffClassStats._({
required super.heapClass,
required super.objectsByPath,
required this.total,
})
sampleObtainer, | ||
), | ||
const MenuItemButton( | ||
child: Text('Browse an instance 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.
maybe this should mention the work "references" to make it clear what you can browse
Addressed the comments in #5053 |
RELEASE_NOTE_EXCEPTION=[under flag]