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

Side by Side Diff: runtime/observatory/lib/src/models/objects/thread.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of models; 5 part of models;
6 6
7 enum ThreadKind { 7 enum ThreadKind {
8 unknownTask, 8 unknownTask,
9 mutatorTask, 9 mutatorTask,
10 compilerTask, 10 compilerTask,
11 sweeperTask, 11 sweeperTask,
12 markerTask, 12 markerTask,
13 finalizerTask 13 finalizerTask
14 } 14 }
15 15
16 abstract class Thread { 16 abstract class Thread {
17 /// The id associated with the thread on creation. 17 /// The id associated with the thread on creation.
18 String get id; 18 String get id;
19 19
20 /// The task type associated with the thread. 20 /// The task type associated with the thread.
21 ThreadKind get kind; 21 ThreadKind get kind;
22 22
23 /// The maximum amount of memory in bytes allocated by a thread at a given 23 /// The maximum amount of zone memory in bytes allocated by a thread at a
24 /// time throughout the entire life of the thread. 24 /// given time throughout the entire life of the thread.
25 int get memoryHighWatermark; 25 int get zoneHighWatermark;
26 26
27 /// A list of all the zones held by the thread. 27 /// The current Zone capacity available to this thread.
28 Iterable<Zone> get zones; 28 int get zoneCapacity;
29 } 29 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/models/objects/isolate.dart ('k') | runtime/observatory/lib/src/service/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698