-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expose vm service API to give me ObjRef by object. #53012
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
Comments
Current implementation of object lookup: https://github.com/dart-lang/leak_tracker/blob/10cce1af65da33daf8268e82ca6e4557235c1a25/pkgs/leak_tracker/lib/src/leak_tracking/retaining_path/_retaining_path.dart#L57 Instead I want to pass object, that I can keep with weak reference. |
In order to invoke service.getRetainingPath, I need isolateId as well. Is there a way to get it for an object? If no, is it possible to expose Service.getIsolateIdForObject as well? |
You're looking for |
I think you also need |
It wants Isolate as parameter |
Yes, you can get that with |
I tried to use it and got confused. @derekxu16, can you help me to figure this out? |
|
It is needed for leak_tracker.
So that it does not have to full scan all instances searching for hash code.
This will also simplify the leak tracker code, as it will not have to account for possible hash code duplicates
The text was updated successfully, but these errors were encountered: