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

Issue 2609253002: Added isolate + thread high watermark tracking to Observatory (Closed)

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

Description

Added isolate + thread high watermark tracking to Observatory Added tracking of memory usage inside of threads. In addition, the max memory usage is kept track of using a high watermark for both the threads and the isolates. Isolate high watermark information is updated when a thread exits the isolate. The isolate high watermark consists of the sum of all thread high watermarks (including the high watermark of the exiting thread). High watermark information for both threads and isolates is now visible in the isolate view in the Observatory. BUG= R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/b3c55f972fa2cd6495bd748edb6b3c60b4d9429e

Patch Set 1 #

Total comments: 23

Patch Set 2 : Added isolate + thread high watermark tracking to Observatory #

Patch Set 3 : Merge branch 'master' of github.com:dart-lang/sdk into resubmit #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -6 lines) Patch
M runtime/observatory/lib/src/elements/isolate_view.dart View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/isolate.dart View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/thread.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 4 chunks +13 lines, -0 lines 0 comments Download
M runtime/observatory/tests/service/get_zone_memory_info_rpc_test.dart View 2 chunks +2 lines, -1 line 0 comments Download
M runtime/vm/isolate.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/isolate.cc View 1 2 5 chunks +15 lines, -1 line 0 comments Download
M runtime/vm/thread.h View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/thread_registry.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/thread_registry.cc View 1 2 2 chunks +13 lines, -0 lines 1 comment Download
M runtime/vm/thread_test.cc View 1 2 chunks +14 lines, -3 lines 0 comments Download
M runtime/vm/zone.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
bkonyi
This is an updated version of the commit reviewed here: https://codereview.chromium.org/2608463002. This should fix failing ...
3 years, 11 months ago (2017-01-03 19:46:32 UTC) #4
Cutch
https://codereview.chromium.org/2609253002/diff/1/runtime/observatory/lib/src/elements/isolate_view.dart File runtime/observatory/lib/src/elements/isolate_view.dart (right): https://codereview.chromium.org/2609253002/diff/1/runtime/observatory/lib/src/elements/isolate_view.dart#newcode285 runtime/observatory/lib/src/elements/isolate_view.dart:285: ..text = 'high watermark', This needs more context and ...
3 years, 11 months ago (2017-01-03 20:58:54 UTC) #5
bkonyi
https://codereview.chromium.org/2609253002/diff/1/runtime/observatory/lib/src/elements/isolate_view.dart File runtime/observatory/lib/src/elements/isolate_view.dart (right): https://codereview.chromium.org/2609253002/diff/1/runtime/observatory/lib/src/elements/isolate_view.dart#newcode285 runtime/observatory/lib/src/elements/isolate_view.dart:285: ..text = 'high watermark', On 2017/01/03 at 20:58:54, Cutch ...
3 years, 11 months ago (2017-01-03 22:00:38 UTC) #6
Cutch
https://codereview.chromium.org/2609253002/diff/1/runtime/observatory/lib/src/elements/isolate_view.dart File runtime/observatory/lib/src/elements/isolate_view.dart (right): https://codereview.chromium.org/2609253002/diff/1/runtime/observatory/lib/src/elements/isolate_view.dart#newcode285 runtime/observatory/lib/src/elements/isolate_view.dart:285: ..text = 'high watermark', On 2017/01/03 22:00:37, bkonyi wrote: ...
3 years, 11 months ago (2017-01-03 22:28:00 UTC) #7
bkonyi
https://codereview.chromium.org/2609253002/diff/1/runtime/observatory/lib/src/elements/isolate_view.dart File runtime/observatory/lib/src/elements/isolate_view.dart (right): https://codereview.chromium.org/2609253002/diff/1/runtime/observatory/lib/src/elements/isolate_view.dart#newcode285 runtime/observatory/lib/src/elements/isolate_view.dart:285: ..text = 'high watermark', On 2017/01/03 at 22:28:00, Cutch ...
3 years, 11 months ago (2017-01-04 00:31:55 UTC) #8
Cutch
LGTM
3 years, 11 months ago (2017-01-04 21:12:38 UTC) #9
bkonyi
Committed patchset #3 (id:40001) manually as b3c55f972fa2cd6495bd748edb6b3c60b4d9429e (presubmit successful).
3 years, 11 months ago (2017-01-04 23:08:13 UTC) #11
siva
3 years, 11 months ago (2017-01-21 00:30:51 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/2609253002/diff/40001/runtime/vm/thread_regis...
File runtime/vm/thread_registry.cc (right):

https://codereview.chromium.org/2609253002/diff/40001/runtime/vm/thread_regis...
runtime/vm/thread_registry.cc:194: return memory_high_watermarks_total;
Why is it necessary to sum up the high water marks of the threads here and add
it up in this fashion. This code is racy and triggers an error from a tsan run.


Is tracking the high water mark for the isolate critical, could we
not just display the high water mark of each thread?

Powered by Google App Engine
This is Rietveld 408576698