-
Notifications
You must be signed in to change notification settings - Fork 23
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
Collect retaining path. #63
Conversation
lib/src/leak_tracking/retaining_path/_json_to_service_cache.dart
Outdated
Show resolved
Hide resolved
lib/src/leak_tracking/retaining_path/_vm_service_private_extensions.dart
Outdated
Show resolved
Hide resolved
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.
was the code under retaining_path/
copied from somewhere? It looks like it was copied from a combination of DevTools and the Dart SDK. If so, why are we copying code into package leak_tracker instead of introducing a dependency on shared code?
CC @bkonyi |
Cleaned up what I do not use and created bug for tech debt: flutter/devtools#5837 |
return null; | ||
} | ||
|
||
class _ItemInIsolate { |
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.
nit would it make more sense to name this _ObjectInIsolate? This would match the method name _objectInIsolate
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.
Sometimes it is a class. Added comment.
@@ -125,11 +132,17 @@ Future<List<_ItemInIsolate>> _findClasses(String runtimeClassName) async { | |||
for (final isolateId in _isolateIds) { | |||
var classes = await _service.getClassList(isolateId); | |||
|
|||
const watingTime = Duration(seconds: 2); | |||
final stopwatch = Stopwatch()..start(); |
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.
does this stop watch need to be stopped 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.
No, it is not doing any background work.
No description provided.