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

Issue 2610253002: 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
CC:
Cutch, 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 This is a fixed version of c84f30741c90d040254767ff769a40d2cba3fb1a that resolves issues with comparing uint and intptr_t. Original Commit Message: 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/4024151adbf9699ff93d6953f3cd63a5ab4341c7

Patch Set 1 #

Total comments: 4

Patch Set 2 : Converted uint values to uintptr_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -8 lines) Patch
M runtime/observatory/lib/src/elements/isolate_view.dart View 2 chunks +18 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/models/objects/isolate.dart View 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 4 chunks +12 lines, -2 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 3 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/isolate.cc View 1 5 chunks +15 lines, -1 line 0 comments Download
M runtime/vm/thread.h View 1 2 chunks +18 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 3 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/thread_registry.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/thread_registry.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M runtime/vm/thread_test.cc View 1 2 chunks +14 lines, -3 lines 0 comments Download
M runtime/vm/zone.cc View 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
bkonyi
https://codereview.chromium.org/2610253002/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/2610253002/diff/1/runtime/vm/isolate.cc#newcode2728 runtime/vm/isolate.cc:2728: const uint thread_watermarks_total = This is the line that ...
3 years, 11 months ago (2017-01-04 23:49:52 UTC) #2
zra
https://codereview.chromium.org/2610253002/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/2610253002/diff/1/runtime/vm/isolate.cc#newcode2728 runtime/vm/isolate.cc:2728: const uint thread_watermarks_total = On 2017/01/04 23:49:52, bkonyi wrote: ...
3 years, 11 months ago (2017-01-04 23:53:26 UTC) #3
bkonyi
https://codereview.chromium.org/2610253002/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/2610253002/diff/1/runtime/vm/isolate.cc#newcode2728 runtime/vm/isolate.cc:2728: const uint thread_watermarks_total = On 2017/01/04 at 23:53:26, zra ...
3 years, 11 months ago (2017-01-05 00:09:02 UTC) #4
bkonyi
https://codereview.chromium.org/2610253002/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/2610253002/diff/1/runtime/vm/isolate.cc#newcode2728 runtime/vm/isolate.cc:2728: const uint thread_watermarks_total = On 2017/01/04 at 23:53:26, zra ...
3 years, 11 months ago (2017-01-05 14:36:28 UTC) #5
Cutch
lgtm
3 years, 11 months ago (2017-01-05 14:47:51 UTC) #6
bkonyi
3 years, 11 months ago (2017-01-05 22:25:38 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
4024151adbf9699ff93d6953f3cd63a5ab4341c7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698