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

Unified Diff: runtime/observatory/lib/src/models/objects/thread.dart

Issue 2574643003: Added ability to request zone memory information for all isolates through the VM service and added … (Closed)
Patch Set: Converted to using strong types, removed unused code and whitespace. Created 4 years 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
Index: runtime/observatory/lib/src/models/objects/thread.dart
diff --git a/runtime/observatory/lib/src/models/objects/thread.dart b/runtime/observatory/lib/src/models/objects/thread.dart
new file mode 100644
index 0000000000000000000000000000000000000000..97a88e9a06ae83ac3481219af101a2101110039c
--- /dev/null
+++ b/runtime/observatory/lib/src/models/objects/thread.dart
@@ -0,0 +1,25 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+part of models;
+
+enum ThreadKind {
+ kUnknownTask,
Cutch 2016/12/19 14:46:09 https://www.dartlang.org/guides/language/effective
bkonyi 2016/12/19 16:40:20 Done.
+ kMutatorTask,
+ kCompilerTask,
+ kSweeperTask,
+ kMarkerTask,
+ kFinalizerTask
+}
+
+abstract class Thread {
+ /// The id associated with the thread on creation
+ String get id;
+
+ /// The task type associated with the thread,
+ ThreadKind get kind;
+
+ /// A list of all the zones held by the thread.
+ Iterable<Zone> get zones;
+}

Powered by Google App Engine
This is Rietveld 408576698