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

Issue 1811713002: Perform a full GC by default when requesting a heap snapshot. (Closed)

Created:
4 years, 9 months ago by rmacnak
Modified:
4 years, 9 months ago
Reviewers:
Cutch, Ivan Posva
CC:
reviews_dartlang.org, turnidge, Cutch, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Perform a full GC by default when requesting a heap snapshot. Prevents the snapshot from include objects that are only weakly reachable. BUG=http://dartbug.com/25994 R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/6eaa45058c8879ef9e32d9f356b3ef7e400e3a43

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -12 lines) Patch
M runtime/observatory/lib/src/app/location_manager.dart View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/elements/class_view.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/heap_snapshot.dart View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/observatory/tests/service/dominator_tree_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/tests/service/graph_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object_graph.h View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/object_graph.cc View 1 chunk +5 lines, -1 line 1 comment Download
M runtime/vm/service.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/service.cc View 1 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
rmacnak
4 years, 9 months ago (2016-03-16 22:59:14 UTC) #2
Cutch
LGTM with a couple comments/suggestions https://codereview.chromium.org/1811713002/diff/20001/runtime/observatory/lib/src/elements/heap_snapshot.dart File runtime/observatory/lib/src/elements/heap_snapshot.dart (right): https://codereview.chromium.org/1811713002/diff/20001/runtime/observatory/lib/src/elements/heap_snapshot.dart#newcode412 runtime/observatory/lib/src/elements/heap_snapshot.dart:412: app.locationManager.uri.queryParameters['collectGarbage']; Maybe a helper ...
4 years, 9 months ago (2016-03-17 15:37:32 UTC) #3
rmacnak
https://codereview.chromium.org/1811713002/diff/20001/runtime/observatory/lib/src/elements/heap_snapshot.dart File runtime/observatory/lib/src/elements/heap_snapshot.dart (right): https://codereview.chromium.org/1811713002/diff/20001/runtime/observatory/lib/src/elements/heap_snapshot.dart#newcode412 runtime/observatory/lib/src/elements/heap_snapshot.dart:412: app.locationManager.uri.queryParameters['collectGarbage']; On 2016/03/17 15:37:32, Cutch wrote: > Maybe a ...
4 years, 9 months ago (2016-03-17 18:09:09 UTC) #4
rmacnak
Committed patchset #3 (id:40001) manually as 6eaa45058c8879ef9e32d9f356b3ef7e400e3a43 (presubmit successful).
4 years, 9 months ago (2016-03-17 18:11:43 UTC) #6
Ivan Posva
4 years, 9 months ago (2016-03-18 23:38:58 UTC) #8
Message was sent while issue was closed.
DBC

-Ivan

https://codereview.chromium.org/1811713002/diff/40001/runtime/vm/object_graph.cc
File runtime/vm/object_graph.cc (right):

https://codereview.chromium.org/1811713002/diff/40001/runtime/vm/object_graph...
runtime/vm/object_graph.cc:519: isolate()->heap()->new_space()->Evacuate();
You could also run a scavenge followed by the call to CollectAllGarbage above.
This should have the same effect as evacuating after the full collection with
the additional benefit of collecting new-old-new cycles.

Powered by Google App Engine
This is Rietveld 408576698