Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Issue 3009743003: [observatory] Add an "ownership" analysis for the heap snapshot. (Closed)

Created:
3 years, 3 months ago by rmacnak
Modified:
3 years, 3 months ago
Reviewers:
cbernaschina, siva
CC:
reviews_dartlang.org, turnidge, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[observatory] Add an "ownership" analysis for the heap snapshot. An object A is said to be owned by object B if all direct references to A come from B. In particular, an object that holds unshared lists and maps will own the heap size of those lists and maps, as well as any unshared elements. We hope a table of owned sizes will be more useful than a table of shallow sizes, since the latter typically says the heap is mostly lists. R=cbernaschina@google.com Committed: https://github.com/dart-lang/sdk/commit/b7a0458196d73f6f6de0272f78d0d1a9547f88cf

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 4

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -9 lines) Patch
M runtime/observatory/lib/object_graph.dart View 1 2 3 4 7 chunks +91 lines, -7 lines 0 comments Download
M runtime/observatory/lib/src/elements/heap_snapshot.dart View 1 2 6 chunks +40 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/heap_snapshot/heap_snapshot.dart View 1 2 3 4 4 chunks +23 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/heap_snapshot.dart View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/heap_snapshot.dart View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/object_graph.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
rmacnak
3 years, 3 months ago (2017-08-29 20:36:40 UTC) #5
cbernaschina
https://codereview.chromium.org/3009743003/diff/60001/runtime/observatory/lib/src/elements/heap_snapshot.dart File runtime/observatory/lib/src/elements/heap_snapshot.dart (right): https://codereview.chromium.org/3009743003/diff/60001/runtime/observatory/lib/src/elements/heap_snapshot.dart#newcode303 runtime/observatory/lib/src/elements/heap_snapshot.dart:303: final items = _snapshot.ownershipClasses.toList(); The field ownershipClasses is not ...
3 years, 3 months ago (2017-08-29 21:07:01 UTC) #6
rmacnak
Also fixed overly-strict assert that initial sizes are non-zero. The stack and root have size ...
3 years, 3 months ago (2017-08-29 23:59:34 UTC) #7
cbernaschina
lgtm
3 years, 3 months ago (2017-08-30 00:00:49 UTC) #8
cbernaschina
lgtm
3 years, 3 months ago (2017-08-30 00:00:51 UTC) #9
rmacnak
3 years, 3 months ago (2017-08-30 16:51:04 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
b7a0458196d73f6f6de0272f78d0d1a9547f88cf (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698