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

Unified Diff: runtime/observatory/lib/src/elements/isolate_view.dart

Issue 2762323002: Reimplemented zone memory tracking to avoid race conditions that were causing crashes in the previo… (Closed)
Patch Set: Final change Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/observatory/lib/src/models/objects/isolate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/isolate_view.dart
diff --git a/runtime/observatory/lib/src/elements/isolate_view.dart b/runtime/observatory/lib/src/elements/isolate_view.dart
index 8c0f186831c109159d5ed67a7d28cf9be26a6f16..0c830be194f730e680dda8e78e6338bcbf20b03b 100644
--- a/runtime/observatory/lib/src/elements/isolate_view.dart
+++ b/runtime/observatory/lib/src/elements/isolate_view.dart
@@ -302,13 +302,13 @@ class IsolateViewElement extends HtmlElement implements Renderable {
..children = [
new DivElement()
..classes = ['memberName']
- ..text = 'native memory usage high watermark'
- ..title = '''The maximum amount of native memory allocated
- by the isolate over it\'s life.''',
+ ..text = 'zone capacity high watermark'
+ ..title = '''The maximum amount of native zone memory
+ allocated by the isolate over it\'s life.''',
new DivElement()
..classes = ['memberValue']
- ..text = Utils.formatSize(_isolate.memoryHighWatermark)
- ..title = '${_isolate.memoryHighWatermark}B'
+ ..text = Utils.formatSize(_isolate.zoneHighWatermark)
+ ..title = '${_isolate.zoneHighWatermark}B'
],
new BRElement(),
new DivElement()
@@ -377,57 +377,16 @@ class IsolateViewElement extends HtmlElement implements Renderable {
..text = 'kind ${t.kindString}',
new DivElement()
..classes = ['indent']
- ..title = '${t.memoryHighWatermark}B'
+ ..title = '${t.zoneHighWatermark}B'
..text =
- 'native memory usage high watermark ${Utils.formatSize(t.memoryHighWatermark)}',
+ 'zone capacity high watermark ' +
+ '${Utils.formatSize(t.zoneHighWatermark)}',
new DivElement()
- ..children = t.zones
- .map((z) => new DivElement()
- ..classes = ['indent']
- ..children = [
- new DivElement()
- ..children = [
- new SpanElement()
- ..children = [
- // TODO(bkonyi): zones will always be empty. See
- // issue #28885.
- new SpanElement()
- ..text = 'zone ${index++} ',
- new CurlyBlockElement(queue: _r.queue)
- ..content = [
- new DivElement()
- ..classes = ['memberList']
- ..children = [
- new DivElement()
- ..classes = ['memberItem']
- ..children = [
- new SpanElement()
- ..classes = ['memberName']
- ..text = 'used ',
- new SpanElement()
- ..classes = ['memberValue']
- ..title = '${z.used}B'
- ..text =
- Utils.formatSize(z.used)
- ],
- new DivElement()
- ..classes = ['memberItem']
- ..children = [
- new SpanElement()
- ..classes = ['memberName']
- ..text = 'capacity',
- new SpanElement()
- ..classes = ['memberValue']
- ..title = '${z.capacity}B'
- ..text =
- Utils.formatSize(z.capacity)
- ]
- ]
- ]
- ]
- ]
- ]
- )]
+ ..classes = ['indent']
+ ..title = '${t.zoneCapacity}B'
+ ..text = 'current zone capacity ' +
+ '${Utils.formatSize(t.zoneCapacity)}',
+ ]
];
}
« no previous file with comments | « no previous file | runtime/observatory/lib/src/models/objects/isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698