| 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..a62353f7b3c88aa0689f8d2a119e03dfa8c87bb7
|
| --- /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 {
|
| + unknownTask,
|
| + mutatorTask,
|
| + compilerTask,
|
| + sweeperTask,
|
| + markerTask,
|
| + finalizerTask
|
| +}
|
| +
|
| +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;
|
| +}
|
|
|