Skip to content
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

Merged
merged 42 commits into from
May 23, 2023
Merged

Collect retaining path. #63

merged 42 commits into from
May 23, 2023

Conversation

polina-c
Copy link
Contributor

No description provided.

@polina-c polina-c marked this pull request as ready for review May 22, 2023 17:23
@polina-c polina-c requested a review from CoderDake as a code owner May 22, 2023 17:23
Copy link

@kenzieschmoll kenzieschmoll left a 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?

@kenzieschmoll
Copy link

CC @bkonyi

@polina-c polina-c marked this pull request as draft May 22, 2023 18:04
@polina-c
Copy link
Contributor Author

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?

Cleaned up what I do not use and created bug for tech debt: flutter/devtools#5837

@polina-c polina-c marked this pull request as ready for review May 22, 2023 20:11
lib/src/leak_tracking/retaining_path/_retaining_path.dart Outdated Show resolved Hide resolved
lib/src/leak_tracking/retaining_path/_retaining_path.dart Outdated Show resolved Hide resolved
return null;
}

class _ItemInIsolate {

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

Copy link
Contributor Author

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.

lib/src/leak_tracking/retaining_path/_retaining_path.dart Outdated Show resolved Hide resolved
lib/src/leak_tracking/retaining_path/_retaining_path.dart Outdated Show resolved Hide resolved
test/dart_debug/leak_tracking/end_to_end_test.dart Outdated Show resolved Hide resolved
@@ -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();
Copy link

@kenzieschmoll kenzieschmoll May 23, 2023

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?

Copy link
Contributor Author

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.

@polina-c polina-c merged commit 9c6e9b3 into dart-lang:main May 23, 2023
@polina-c polina-c deleted the retaining-path branch May 23, 2023 16:36
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