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

Issue 2554983002: Created methods to surface zone memory information for each isolate and thread in JSON. (Closed)

Created:
4 years ago by bkonyi
Modified:
4 years ago
Reviewers:
zra, Cutch, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Created methods to surface zone memory information for each isolate and thread in JSON. BUG= R=asiva@google.com, johnmccutchan@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/35a49bc1ff57ce8405db80f766edaa6ba6126328

Patch Set 1 #

Patch Set 2 : Created methods to surface zone memory information for each isolate and thread in JSON. #

Total comments: 28

Patch Set 3 : Created methods to surface zone memory information for each isolate and thread in JSON. #

Total comments: 48

Patch Set 4 : Fixed ifndefs, various whitespace issues, and removed extra optional parameters #

Total comments: 4

Patch Set 5 : No longer report threads in free lists. #

Total comments: 6

Patch Set 6 : Created methods to surface zone memory information for each isolate and thread in JSON. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -2 lines) Patch
M runtime/vm/isolate.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/json_stream.h View 1 2 5 chunks +20 lines, -0 lines 0 comments Download
M runtime/vm/json_stream.cc View 1 2 3 3 chunks +37 lines, -0 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/thread.h View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M runtime/vm/thread_registry.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M runtime/vm/thread_registry.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M runtime/vm/thread_test.cc View 1 2 3 4 5 1 chunk +173 lines, -0 lines 0 comments Download
M runtime/vm/zone.h View 1 2 3 4 chunks +13 lines, -0 lines 0 comments Download
M runtime/vm/zone.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M runtime/vm/zone_test.cc View 1 2 3 4 5 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (2 generated)
bkonyi
This is all the functionality required to move forward with passing the zone memory information ...
4 years ago (2016-12-06 19:03:24 UTC) #2
Cutch
https://codereview.chromium.org/2554983002/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/2554983002/diff/20001/runtime/vm/isolate.cc#newcode2500 runtime/vm/isolate.cc:2500: void Isolate::PrintAllIsolatesMemoryInfoToJSONLocked(JSONStream* stream) { The suffix of 'Locked' is ...
4 years ago (2016-12-06 19:11:15 UTC) #3
zra
High level comment: We build in three modes, DEBUG, RELEASE, and PRODUCT. PRODUCT mode is ...
4 years ago (2016-12-06 19:20:53 UTC) #4
bkonyi
On 2016/12/06 19:20:53, zra wrote: > High level comment: We build in three modes, DEBUG, ...
4 years ago (2016-12-06 19:23:43 UTC) #5
siva
https://codereview.chromium.org/2554983002/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/2554983002/diff/20001/runtime/vm/isolate.cc#newcode2098 runtime/vm/isolate.cc:2098: reinterpret_cast<uword>(this)); Can we use isolate id instead of isolate ...
4 years ago (2016-12-07 22:12:53 UTC) #6
bkonyi
https://codereview.chromium.org/2554983002/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/2554983002/diff/20001/runtime/vm/isolate.cc#newcode2098 runtime/vm/isolate.cc:2098: reinterpret_cast<uword>(this)); On 2016/12/07 22:12:52, siva wrote: > Can we ...
4 years ago (2016-12-08 18:04:14 UTC) #7
zra
We probably want this in both DEBUG and RELEASE builds, so we should use #ifndef ...
4 years ago (2016-12-08 18:54:14 UTC) #8
bkonyi
https://codereview.chromium.org/2554983002/diff/40001/runtime/vm/isolate_test.cc File runtime/vm/isolate_test.cc (left): https://codereview.chromium.org/2554983002/diff/40001/runtime/vm/isolate_test.cc#oldcode248 runtime/vm/isolate_test.cc:248: On 2016/12/08 18:54:13, zra wrote: > Did clang-format remove ...
4 years ago (2016-12-08 20:58:33 UTC) #9
Cutch
Final comments. https://codereview.chromium.org/2554983002/diff/60001/runtime/vm/service.cc File runtime/vm/service.cc (right): https://codereview.chromium.org/2554983002/diff/60001/runtime/vm/service.cc#newcode3767 runtime/vm/service.cc:3767: jsarr_->AddValue(isolate, false); why is this necessary? https://codereview.chromium.org/2554983002/diff/60001/runtime/vm/thread_registry.cc ...
4 years ago (2016-12-08 22:25:54 UTC) #10
bkonyi
https://codereview.chromium.org/2554983002/diff/60001/runtime/vm/service.cc File runtime/vm/service.cc (right): https://codereview.chromium.org/2554983002/diff/60001/runtime/vm/service.cc#newcode3767 runtime/vm/service.cc:3767: jsarr_->AddValue(isolate, false); On 2016/12/08 22:25:54, Cutch wrote: > why ...
4 years ago (2016-12-08 22:42:01 UTC) #11
bkonyi
4 years ago (2016-12-08 22:42:03 UTC) #12
bkonyi
On 2016/12/08 22:42:03, bkonyi wrote: I talked with John and I've addressed all the feedback ...
4 years ago (2016-12-09 01:56:41 UTC) #13
siva
lgtm https://codereview.chromium.org/2554983002/diff/80001/runtime/vm/thread_test.cc File runtime/vm/thread_test.cc (right): https://codereview.chromium.org/2554983002/diff/80001/runtime/vm/thread_test.cc#newcode326 runtime/vm/thread_test.cc:326: char isolate_address_buf[64]; Instead of using a local buffer ...
4 years ago (2016-12-09 02:49:39 UTC) #14
zra
lgtm with nit. https://codereview.chromium.org/2554983002/diff/80001/runtime/vm/thread_registry.h File runtime/vm/thread_registry.h (right): https://codereview.chromium.org/2554983002/diff/80001/runtime/vm/thread_registry.h#newcode16 runtime/vm/thread_registry.h:16: class JSONStream; These should probably go ...
4 years ago (2016-12-09 17:51:37 UTC) #15
bkonyi
https://codereview.chromium.org/2554983002/diff/80001/runtime/vm/thread_registry.h File runtime/vm/thread_registry.h (right): https://codereview.chromium.org/2554983002/diff/80001/runtime/vm/thread_registry.h#newcode16 runtime/vm/thread_registry.h:16: class JSONStream; On 2016/12/09 17:51:36, zra wrote: > These ...
4 years ago (2016-12-09 17:52:57 UTC) #16
Cutch
lgtm
4 years ago (2016-12-09 17:55:30 UTC) #17
bkonyi
4 years ago (2016-12-12 17:56:56 UTC) #19
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
35a49bc1ff57ce8405db80f766edaa6ba6126328 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698