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

Issue 2996803002: Add current rss and embedder name to Observatory (Closed)

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

Description

Add current rss and embedder name to Observatory Moved the responsibility to provide MaxRSS and CurrentRSS from the VM to the embedder. The embedder can opt-it by setting a Dart_GetEmbedderInformation callback using the public Dart_SetEmbedderInformationCallback API. The implementation of the Dart_GetEmbedderInformation should mandatory fill the version field and the ones it is able to fill. The name field must reference a constant C style string, it will not be freed by the VM code. R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/ce736d3ef009bf334a92d5b7d354fc0b04805b4f

Patch Set 1 #

Patch Set 2 : Managing null currentRSS in graph tooltip #

Total comments: 22

Patch Set 3 : Refactoring #

Total comments: 2

Patch Set 4 : Refactoring of PrintJSONForVM #

Patch Set 5 : Rebase and Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -119 lines) Patch
M runtime/bin/main.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M runtime/bin/process_android.cc View 1 2 1 chunk +12 lines, -10 lines 0 comments Download
M runtime/bin/process_linux.cc View 1 2 1 chunk +12 lines, -10 lines 0 comments Download
M runtime/include/dart_tools_api.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M runtime/observatory/lib/models.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/repositories.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/src/app/page.dart View 3 chunks +4 lines, -3 lines 0 comments Download
M runtime/observatory/lib/src/elements/memory/dashboard.dart View 4 chunks +9 lines, -4 lines 0 comments Download
M runtime/observatory/lib/src/elements/memory/graph.dart View 1 2 3 4 11 chunks +60 lines, -34 lines 0 comments Download
M runtime/observatory/lib/src/elements/vm_view.dart View 1 2 7 chunks +42 lines, -5 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/vm.dart View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
A runtime/observatory/lib/src/models/repositories/vm.dart View 1 chunk +9 lines, -0 lines 0 comments Download
A runtime/observatory/lib/src/repositories/vm.dart View 1 chunk +14 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M runtime/observatory/observatory_sources.gypi View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/observatory/tests/observatory_ui/mocks/objects/vm.dart View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/observatory/tests/service/vm_test.dart View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/benchmark_test.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M runtime/vm/metrics.h View 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/metrics.cc View 1 chunk +5 lines, -1 line 0 comments Download
M runtime/vm/os.h View 1 chunk +0 lines, -3 lines 0 comments Download
M runtime/vm/os_android.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M runtime/vm/os_fuchsia.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M runtime/vm/os_linux.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M runtime/vm/os_macos.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M runtime/vm/os_win.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M runtime/vm/service.h View 1 2 3 4 chunks +9 lines, -0 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 4 chunks +59 lines, -1 line 0 comments Download

Messages

Total messages: 16 (4 generated)
cbernaschina
3 years, 4 months ago (2017-08-09 22:06:44 UTC) #3
cbernaschina
3 years, 4 months ago (2017-08-09 22:17:31 UTC) #4
zra
More comments tomorrow... https://codereview.chromium.org/2996803002/diff/20001/runtime/include/dart_tools_api.h File runtime/include/dart_tools_api.h (right): https://codereview.chromium.org/2996803002/diff/20001/runtime/include/dart_tools_api.h#newcode804 runtime/include/dart_tools_api.h:804: DART_EXPORT void Dart_SetGetEmbedderInformationCallback( Consider a rename ...
3 years, 4 months ago (2017-08-09 22:58:27 UTC) #5
cbernaschina
https://codereview.chromium.org/2996803002/diff/20001/runtime/include/dart_tools_api.h File runtime/include/dart_tools_api.h (right): https://codereview.chromium.org/2996803002/diff/20001/runtime/include/dart_tools_api.h#newcode804 runtime/include/dart_tools_api.h:804: DART_EXPORT void Dart_SetGetEmbedderInformationCallback( On 2017/08/09 22:58:27, zra wrote: > ...
3 years, 4 months ago (2017-08-10 00:29:17 UTC) #6
zra
https://codereview.chromium.org/2996803002/diff/20001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://codereview.chromium.org/2996803002/diff/20001/runtime/bin/main.cc#newcode1360 runtime/bin/main.cc:1360: static Dart_EmbedderInformation information = { The VM could pass ...
3 years, 4 months ago (2017-08-10 22:19:51 UTC) #7
cbernaschina
A couple of comments, will address the rest in the morning. https://codereview.chromium.org/2996803002/diff/20001/runtime/bin/main.cc File runtime/bin/main.cc (right): ...
3 years, 4 months ago (2017-08-10 22:40:28 UTC) #8
zra
https://codereview.chromium.org/2996803002/diff/20001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://codereview.chromium.org/2996803002/diff/20001/runtime/bin/main.cc#newcode1360 runtime/bin/main.cc:1360: static Dart_EmbedderInformation information = { On 2017/08/10 22:40:28, cbernaschina ...
3 years, 4 months ago (2017-08-10 22:49:47 UTC) #9
cbernaschina
https://codereview.chromium.org/2996803002/diff/20001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://codereview.chromium.org/2996803002/diff/20001/runtime/bin/main.cc#newcode1360 runtime/bin/main.cc:1360: static Dart_EmbedderInformation information = { On 2017/08/10 22:49:46, zra ...
3 years, 4 months ago (2017-08-12 00:29:42 UTC) #11
zra
lgtm w/ cleanup suggestion https://codereview.chromium.org/2996803002/diff/40001/runtime/vm/service.cc File runtime/vm/service.cc (right): https://codereview.chromium.org/2996803002/diff/40001/runtime/vm/service.cc#newcode3875 runtime/vm/service.cc:3875: if (embedder_information_callback_ != NULL) { ...
3 years, 4 months ago (2017-08-14 18:26:32 UTC) #12
cbernaschina
https://codereview.chromium.org/2996803002/diff/40001/runtime/vm/service.cc File runtime/vm/service.cc (right): https://codereview.chromium.org/2996803002/diff/40001/runtime/vm/service.cc#newcode3875 runtime/vm/service.cc:3875: if (embedder_information_callback_ != NULL) { On 2017/08/14 18:26:32, zra ...
3 years, 4 months ago (2017-08-14 20:07:41 UTC) #13
cbernaschina
3 years, 4 months ago (2017-08-14 22:22:07 UTC) #14
cbernaschina
3 years, 4 months ago (2017-08-14 22:22:54 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
ce736d3ef009bf334a92d5b7d354fc0b04805b4f.

Powered by Google App Engine
This is Rietveld 408576698